[Bug 7898] ps doesn't handle SIGPIPE correctly

bugzilla at busybox.net bugzilla at busybox.net
Sun Mar 1 18:51:57 UTC 2015


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

--- Comment #2 from Aleksey Fedotov <lexa at cfotr.com> 2015-03-01 18:51:55 UTC ---
Ok, let me explain this issue in more detail. Try to run command:

strace -e trace=signal busybox ps | head -n 1
--- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=4385, si_uid=1000} ---
+++ killed by SIGPIPE +++

As you can see ps got killed by signal, in normal circumstances this doesn't do
much effect and can be easily ignored. However if we working on Android system
there a small daemon called 'debuggerd' which collects crash dump information
about all crashed programs, including programs killed by signals. 

So crashed ps triggers error handling and bug-reporting mechanism in Android
system, which as i believe shouldn't happen.

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