summaryrefslogtreecommitdiff
path: root/gzip.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-03-07 14:47:14 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2021-03-07 14:51:33 -0800
commitacc3a793a29ae3998f683ac7d9688e1c7c3fcb01 (patch)
tree6bba6a7ee17254887e93ccb88519ae0e280a3ab9 /gzip.c
parent412f9959eb383d848be51ecc96d245f0693a4072 (diff)
downloadgzip-acc3a793a29ae3998f683ac7d9688e1c7c3fcb01.tar.gz
gzip: port to SIGPIPE-less platforms
* gzip.c (main): Don’t assume SIGPIPE is defined.
Diffstat (limited to 'gzip.c')
-rw-r--r--gzip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gzip.c b/gzip.c
index d778641..8b8b0bb 100644
--- a/gzip.c
+++ b/gzip.c
@@ -656,7 +656,9 @@ int main (int argc, char **argv)
ALLOC(ush, tab_prefix1, 1L<<(BITS-1));
#endif
+#if SIGPIPE
exiting_signal = quiet ? SIGPIPE : 0;
+#endif
install_signal_handlers ();
/* And get to work */