bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip 1.3.6 aborts on SIGPIPE with -q option


From: Paul Eggert
Subject: Re: gzip 1.3.6 aborts on SIGPIPE with -q option
Date: Fri, 01 Dec 2006 16:04:24 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Jakub Bogusz <address@hidden> writes:

> Possible fix could be to unblock signal before raise() using
> sigprocmask() or install signal handler using sigaction() with SA_NODEFER
> instead of signal().

Thanks for reporting the bug.  How about this simpler fix instead?
I'd prefer it, if it works, since it's less likely to cause porting
hassles.  It fixed the problem on my Debian stable host, so I
installed it; does it fix the problem for you?

2006-12-01  Paul Eggert  <address@hidden>

        * gzip.c (abort_gzip_signal): Don't call abort () as a "safeguard",
        since it actually causes a core dump.  Problem reported by
        Jakub Bogusz.

--- gzip.c      20 Nov 2006 08:40:33 -0000      1.4
+++ gzip.c      2 Dec 2006 00:00:46 -0000
@@ -1848,5 +1848,4 @@ abort_gzip_signal (sig)
    remove_output_file ();
    signal (sig, SIG_DFL);
    raise (sig);
-   abort ();
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]