mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-16 07:00:00 -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
|
|
@ -786,7 +786,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
setlinebuf(stdout);
|
||||
|
||||
if (isatty(STDOUT_FILENO) && getenv("NO_COLOR") == NULL)
|
||||
if (getenv("NO_COLOR") == NULL && isatty(STDOUT_FILENO))
|
||||
colors = true;
|
||||
|
||||
while ((c = getopt_long(argc, argv, "hVr:NCoa", long_options, NULL)) != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue