From a2da5976f6dd19d936aff33a9d6ef68cadb88969 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Tue, 19 Jun 2012 17:55:04 -0600 Subject: [PATCH] oops, missed another SIGPIPE --- debian/patches/sigpipe.diff | 16 ++++++++++++++++ gzip.c | 4 ++++ 2 files changed, 20 insertions(+) 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 */ -- 2.30.2