]> sjero.net Git - wget/blobdiff - src/log.c
Exit immediately on a SIGPIPE error while logging.
[wget] / src / log.c
index e3f2f7109ea7f9a709fc0bfbb3029dc2086da3be..361b45370b0887062fb6f61e4e2ed2c8581c34d8 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -499,6 +499,9 @@ logprintf (enum log_options o, const char *fmt, ...)
       va_start (args, fmt);
       done = log_vprintf_internal (&lpstate, fmt, args);
       va_end (args);
+
+      if (done && errno == EPIPE)
+        exit (1);
     }
   while (!done);
 }