mirror of
https://github.com/mirror/wget.git
synced 2025-02-05 17:20:12 +08:00
Avoid creating empty wget-log when using -O and -q in background
* src/log.c (check_redirect_output): Check for quiet mode
This commit is contained in:
parent
2f451dbf4e
commit
7ddcebd61e
@ -974,7 +974,7 @@ check_redirect_output (void)
|
|||||||
{
|
{
|
||||||
pid_t foreground_pgrp = tcgetpgrp (STDIN_FILENO);
|
pid_t foreground_pgrp = tcgetpgrp (STDIN_FILENO);
|
||||||
|
|
||||||
if (foreground_pgrp != -1 && foreground_pgrp != getpgrp ())
|
if (foreground_pgrp != -1 && foreground_pgrp != getpgrp () && !opt.quiet)
|
||||||
{
|
{
|
||||||
/* Process backgrounded */
|
/* Process backgrounded */
|
||||||
redirect_output (true,NULL);
|
redirect_output (true,NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user