diff --git a/src/ChangeLog b/src/ChangeLog index 425802d6..bc766eb2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,8 +1,13 @@ +2011-07-29 Giuseppe Scrivano + + * log.c (logprintf): Exit immediately on a SIGPIPE error. + Reported by: Nočl Köthe . + 2011-07-26 Carlos Martín Nieto (tiny change) * init.c (home_dir): Allocate path buffer dinamically. -2011-07-26 Giuseppe Scrivano +2011-07-26 Giuseppe Scrivano * retr.c (retrieve_url): Do not register redirects when in spider mode. @@ -12,7 +17,7 @@ UTF-8 URI encoding. * res.c (res_retrieve_file): Fix url_parse call. -2011-06-08 Giuseppe Scrivano +2011-06-08 Giuseppe Scrivano * retr.c (retrieve_from_file): Parse the url careless if IRI is enabled. Reported by: Volker Kuhlmann . 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); }