From dd3ea1fabfeca2b2429fa0c14ebf96831c54c0ef Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Tue, 16 Jul 2019 05:10:44 +0300 Subject: Bugfix * src/wydawca.c (main): logging to stderr does not depend on whether stdin is a tty or not. --- src/wydawca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wydawca.c b/src/wydawca.c index 6232f45..0803aa7 100644 --- a/src/wydawca.c +++ b/src/wydawca.c @@ -393,7 +393,7 @@ main(int argc, char **argv) single_process = single_process_option; if (wy_log_to_stderr == -1) - wy_log_to_stderr = (!daemon_mode || foreground) && isatty(0); + wy_log_to_stderr = !daemon_mode || foreground; grecs_log_to_stderr = wy_log_to_stderr; if (!wy_log_to_stderr) { -- cgit v1.2.1