X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Flog.c;h=361b45370b0887062fb6f61e4e2ed2c8581c34d8;hp=e3f2f7109ea7f9a709fc0bfbb3029dc2086da3be;hb=0b5b100fc9aaa54257ffa16a083a862c031c335b;hpb=f9d46e0f9c4768dcde817f0ee5db38c11e1697ed diff --git a/src/log.c b/src/log.c index e3f2f710..361b4537 100644 --- 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); }