From: Bdale Garbee Date: Tue, 19 Jun 2012 23:55:04 +0000 (-0600) Subject: oops, missed another SIGPIPE X-Git-Tag: debian/1.5-1~2 X-Git-Url: https://git.gag.com/?p=debian%2Fgzip;a=commitdiff_plain;h=a2da5976f6dd19d936aff33a9d6ef68cadb88969 oops, missed another SIGPIPE --- diff --git a/debian/patches/sigpipe.diff b/debian/patches/sigpipe.diff index ff09d86..32b252e 100644 --- a/debian/patches/sigpipe.diff +++ b/debian/patches/sigpipe.diff @@ -12,3 +12,19 @@ index 38e1373..0d9f499 100644 #ifdef SIGTERM , SIGTERM #endif +diff --git a/gzip.c b/gzip.c +index 0d9f499..5fc6ded 100644 +--- a/gzip.c ++++ b/gzip.c +@@ -556,7 +556,11 @@ int main (int argc, char **argv) + ALLOC(ush, tab_prefix1, 1L<<(BITS-1)); + #endif + ++#ifdef SIGPIPE + exiting_signal = quiet ? SIGPIPE : 0; ++#else ++ exiting_signal = 0; ++#endif + install_signal_handlers (); + + /* And get to work */ diff --git a/gzip.c b/gzip.c index 0d9f499..5fc6ded 100644 --- a/gzip.c +++ b/gzip.c @@ -556,7 +556,11 @@ int main (int argc, char **argv) ALLOC(ush, tab_prefix1, 1L<<(BITS-1)); #endif +#ifdef SIGPIPE exiting_signal = quiet ? SIGPIPE : 0; +#else + exiting_signal = 0; +#endif install_signal_handlers (); /* And get to work */