[Bug 7898] ps doesn't handle SIGPIPE correctly

bugzilla at busybox.net bugzilla at busybox.net
Mon Mar 2 09:23:37 UTC 2015


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

--- Comment #4 from Aleksey Fedotov <lexa at cfotr.com> 2015-03-02 09:23:36 UTC ---
(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'. If ignore certain
signals as you suggested can lead to miss of some 'real' crashes.

According to article
https://kobablog.wordpress.com/2011/05/12/debuggerd-of-android/ . If you don't
want to call debuggerd at SIGPIPE then you should change signal handler for
SIGPIPE to default handler.

Also, SIGPIPE handling implemented in mature project like procps:
http://procps.cvs.sourceforge.net/viewvc/procps/procps/ps/display.c?revision=1.32&view=markup

-- 
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