aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-16 05:10:44 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-16 05:10:44 +0300
commitdd3ea1fabfeca2b2429fa0c14ebf96831c54c0ef (patch)
treee6b5b3a26b2ba6beefa46b71e98baa906e09ad41
parentab6db76c77ea6480b307e43107bf570eb90d95eb (diff)
downloadwydawca-dd3ea1fabfeca2b2429fa0c14ebf96831c54c0ef.tar.gz
wydawca-dd3ea1fabfeca2b2429fa0c14ebf96831c54c0ef.tar.bz2
Bugfix
* src/wydawca.c (main): logging to stderr does not depend on whether stdin is a tty or not.
-rw-r--r--src/wydawca.c2
1 files changed, 1 insertions, 1 deletions
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)
393 single_process = single_process_option; 393 single_process = single_process_option;
394 394
395 if (wy_log_to_stderr == -1) 395 if (wy_log_to_stderr == -1)
396 wy_log_to_stderr = (!daemon_mode || foreground) && isatty(0); 396 wy_log_to_stderr = !daemon_mode || foreground;
397 397
398 grecs_log_to_stderr = wy_log_to_stderr; 398 grecs_log_to_stderr = wy_log_to_stderr;
399 if (!wy_log_to_stderr) { 399 if (!wy_log_to_stderr) {

Return to:

Send suggestions and report system problems to the System administrator.