oops, missed another SIGPIPE
[debian/gzip] / debian / patches / sigpipe.diff
index ff09d863bcf400e658efbd7155c32f2ac702b254..32b252e1ae4a4a6b94ad0749d6289ae9eb8a0ae9 100644 (file)
@@ -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 */