]> sjero.net Git - wget/blobdiff - src/mswindows.c
Don't want to close log if an explicit -o was given. Let reopen to /dev/null handle...
[wget] / src / mswindows.c
index 40f0d7626b31c43888b0f3ed6dc7bfcb884f1adc..9d5141f1c740941018c17fb4f31c1651bc178446 100644 (file)
@@ -157,7 +157,7 @@ fake_fork_child (void)
   event = info->event;
 
   info->logfile_changed = false;
-  if (!opt.lfilename)
+  if (!opt.lfilename && (!opt.quiet || opt.server_response))
     {
       /* See utils:fork_to_background for explanation. */
       FILE *new_log_fp = unique_create (DEFAULT_LOGFILE, false, &opt.lfilename);
@@ -289,7 +289,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);