oops, missed another SIGPIPE
authorBdale Garbee <bdale@gag.com>
Tue, 19 Jun 2012 23:55:04 +0000 (17:55 -0600)
committerBdale Garbee <bdale@gag.com>
Tue, 19 Jun 2012 23:55:04 +0000 (17:55 -0600)
debian/patches/sigpipe.diff
gzip.c

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 */
diff --git a/gzip.c b/gzip.c
index 0d9f499de9e08b7de239cec07a59d269dd4c5579..5fc6ded293c785ed584812e0b7eae73bcb0ecc9c 100644 (file)
--- 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 */