fix oddness in this patch that generated an ftpmaster reject
[debian/gzip] / debian / patches / sigpipe.diff
1 diff --git a/gzip.c b/gzip.c
2 index 38e1373..0d9f499 100644
3 --- a/gzip.c
4 +++ b/gzip.c
5 @@ -223,7 +223,9 @@ static int handled_sig[] =
6  #ifdef SIGHUP
7      , SIGHUP
8  #endif
9 +#ifdef SIGPIPE
10      , SIGPIPE
11 +#endif
12  #ifdef SIGTERM
13      , SIGTERM
14  #endif
15 @@ -556,7 +556,11 @@ int main (int argc, char **argv)
16      ALLOC(ush, tab_prefix1, 1L<<(BITS-1));
17  #endif
18  
19 +#ifdef SIGPIPE
20      exiting_signal = quiet ? SIGPIPE : 0;
21 +#else
22 +    exiting_signal = 0;
23 +#endif
24      install_signal_handlers ();
25  
26      /* And get to work */