[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] [PATCH] Respect -o parameter
From: |
Piotr Wajda |
Subject: |
[Bug-wget] [PATCH] Respect -o parameter |
Date: |
Wed, 9 Nov 2016 10:57:01 +0100 |
* log.c: don't choose log output dynamically when opt.lfilename is set
---
src/log.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/log.c b/src/log.c
index e068acf..51f30c4 100644
--- a/src/log.c
+++ b/src/log.c
@@ -956,11 +956,11 @@ static void
check_redirect_output (void)
{
#ifndef WINDOWS
- /* If it was redirected already to log file by SIGHUP or SIGUSR1,
- * it was permanent and since that redirect_request_signal_name is set.
+ /* If it was redirected already to log file by SIGHUP, SIGUSR1 or -o
parameter,
+ * it was permanent.
* If there was no SIGHUP or SIGUSR1 and shell is interactive
* we check if process is fg or bg before every line is printed.*/
- if (!redirect_request_signal_name && shell_is_interactive)
+ if (!redirect_request_signal_name && shell_is_interactive && !opt.lfilename)
{
if (tcgetpgrp (STDIN_FILENO) != getpgrp ())
{
--
1.9.1