diff options
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -343,7 +343,7 @@ log_change_level(LogLevel new_log_level) | |||
343 | int | 343 | int |
344 | log_is_on_stderr(void) | 344 | log_is_on_stderr(void) |
345 | { | 345 | { |
346 | return log_on_stderr; | 346 | return log_on_stderr && log_stderr_fd == STDERR_FILENO; |
347 | } | 347 | } |
348 | 348 | ||
349 | /* redirect what would usually get written to stderr to specified file */ | 349 | /* redirect what would usually get written to stderr to specified file */ |