diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-07 14:47:14 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-07 14:51:33 -0800 |
commit | acc3a793a29ae3998f683ac7d9688e1c7c3fcb01 (patch) | |
tree | 6bba6a7ee17254887e93ccb88519ae0e280a3ab9 /gzip.c | |
parent | 412f9959eb383d848be51ecc96d245f0693a4072 (diff) | |
download | gzip-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |