[Bug 7898] ps doesn't handle SIGPIPE correctly

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 2 17:05:28 UTC 2015


https://bugs.busybox.net/show_bug.cgi?id=7898

--- Comment #7 from Denys Vlasenko <vda.linux at googlemail.com> 2015-03-02 17:05:28 UTC ---
(In reply to comment #6)
> (In reply to comment #5)
> > (In reply to comment #4)
> > > (In reply to comment #3)
> > > > This is a bug in debuggerd. It needs to ignore deaths from SIGPIPE and a few
> > > > other signals (SIGINT, SIGQUIT, SIGABRT).
> > > 
> > > Main purpose of debuggerd is to handle unexpected failures in applications and
> > > if ps crashed with SIGPIPE, then it accounts as 'unexpected'.
> > 
> > I disagree. It is an expected failure.
> 
> So, if you expect it, why not to set signal handler properly?

I mean: it is expected for processes to die from SIGPIPE. It is not a bug. It
was happening in Unix from its early days.

debuggerd (supposedly) wants to catch BUGS, not normal behavior. Therefore it
needs to catch signals which indicate bugs: SIGSEGV, SIGBUS, SIGFPE, SIGILL.
_Not_ SIGPIPE.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list