mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
logger: minor performance improvement to avoid syscall done by isatty
This commit is contained in:
parent
1f578e858c
commit
876c3f43ab
4 changed files with 4 additions and 4 deletions
|
|
@ -370,7 +370,7 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
if (linebuf)
|
||||
setlinebuf(this->file);
|
||||
|
||||
if (!isatty(fileno(this->file)) && !force_colors) {
|
||||
if (this->colors && !force_colors && !isatty(fileno(this->file)) ) {
|
||||
this->colors = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue