summaryrefslogtreecommitdiff
path: root/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'log.c')
-rw-r--r--log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log.c b/log.c
index e68b84a20..6c596414b 100644
--- a/log.c
+++ b/log.c
@@ -343,7 +343,7 @@ log_change_level(LogLevel new_log_level)
343int 343int
344log_is_on_stderr(void) 344log_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 */