]> sjero.net Git - wget/blobdiff - src/mswindows.c
Don't create a logfile for --background if we're --quiet.
[wget] / src / mswindows.c
index 40f0d7626b31c43888b0f3ed6dc7bfcb884f1adc..5fe764e1979e93ec0d50471979cbce7c2b2849a9 100644 (file)
@@ -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);