Subject: Re: bug#5238: 23.1.50; gzip: stdout: Broken pipe

From: Andreas Schwab <[email-masked]>
Date: Sat, 12 Feb 2011 18:18:43 +0100

Jan Djärv <[email-masked]> writes:

> Gzip checks if SIGPIPE is ignored, and if it is not, installs a signal
> handler that prints "gzip: stdout: Broken pipe".

No it doesn't.  The error only happens because gzip gets EPIPE while
writing to stdout, which can only happen when SIGPIPE is ignored, which
in fact Emacs does.  It's the fault of libgtk.

> I don't know if ignoring SIGPIPE for subprocesses is the right thing
> for Emacs to do.

It isn't.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."