mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
logger: minor performance improvement to avoid syscall done by isatty
This commit is contained in:
parent
a5419ea670
commit
15bdab89c3
4 changed files with 4 additions and 4 deletions
|
|
@ -1541,7 +1541,7 @@ int main(int argc, char *argv[])
|
|||
pw_init(&argc, &argv);
|
||||
|
||||
data.out = stdout;
|
||||
if (isatty(fileno(data.out)) && getenv("NO_COLOR") == NULL)
|
||||
if (getenv("NO_COLOR") == NULL && isatty(fileno(data.out)))
|
||||
colors = true;
|
||||
setlinebuf(data.out);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue