mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Automated merge.
This commit is contained in:
commit
1a41bc067c
@ -1,3 +1,13 @@
|
||||
2007-04-12 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* mswindows.c (fake_fork_child): Don't create a logfile for
|
||||
--background when --quiet is used, but not --server-response.
|
||||
Don't mention that we're backgrounding if --quiet is used. Based
|
||||
on a patch submitted by Rabin Vincent <rabin@rab.in>. Fixes bug
|
||||
#20917.
|
||||
|
||||
* utils.c (fork_to_background): Likewise.
|
||||
|
||||
2008-04-12 Micah Cowan <micah@cowan.name>
|
||||
|
||||
* utils.c (aprintf): Minor formatting changes to Alex's code (80-
|
||||
|
@ -157,6 +157,10 @@ fake_fork_child (void)
|
||||
event = info->event;
|
||||
|
||||
info->logfile_changed = false;
|
||||
if (opt.quiet && !opt.server_response)
|
||||
{
|
||||
log_close ();
|
||||
}
|
||||
if (!opt.lfilename)
|
||||
{
|
||||
/* See utils:fork_to_background for explanation. */
|
||||
@ -289,7 +293,8 @@ fake_fork (void)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
printf (_("Continuing in background, pid %lu.\n"), pi.dwProcessId);
|
||||
if (!opt.quiet)
|
||||
printf (_("Continuing in background, pid %lu.\n"), pi.dwProcessId);
|
||||
if (info->logfile_changed)
|
||||
printf (_("Output will be written to `%s'.\n"), info->lfilename);
|
||||
|
||||
|
10
src/utils.c
10
src/utils.c
@ -322,6 +322,13 @@ fork_to_background (void)
|
||||
/* Whether we arrange our own version of opt.lfilename here. */
|
||||
bool logfile_changed = false;
|
||||
|
||||
if (opt.quiet && !opt.server_response)
|
||||
{
|
||||
/* Don't bother with a logfile, there are virtually no logs we
|
||||
issue in quiet mode. (Server responses in FTP are the
|
||||
exception, when enabled.) */
|
||||
log_close ();
|
||||
}
|
||||
if (!opt.lfilename)
|
||||
{
|
||||
/* We must create the file immediately to avoid either a race
|
||||
@ -346,7 +353,8 @@ fork_to_background (void)
|
||||
else if (pid != 0)
|
||||
{
|
||||
/* parent, no error */
|
||||
printf (_("Continuing in background, pid %d.\n"), (int) pid);
|
||||
if (!quiet)
|
||||
printf (_("Continuing in background, pid %d.\n"), (int) pid);
|
||||
if (logfile_changed)
|
||||
printf (_("Output will be written to `%s'.\n"), opt.lfilename);
|
||||
exit (0); /* #### should we use _exit()? */
|
||||
|
Loading…
Reference in New Issue
Block a user