[Bug 7898] ps doesn't handle SIGPIPE correctly
bugzilla at busybox.net
bugzilla at busybox.net
Fri Feb 27 16:57:44 UTC 2015
https://bugs.busybox.net/show_bug.cgi?id=7898
--- Comment #1 from Denys Vlasenko <vda.linux at googlemail.com> 2015-02-27 16:57:44 UTC ---
(In reply to comment #0)
> Imagine situation when ps will be writing into pipe, when suddenly pipe closed
> by other process. 'ps' will receive receive SIGPIPE and crash.
>
> That is easy to reproduce, for example 'ps | head'
# busybox ps | head -1
PID USER TIME COMMAND
And?
> I suggest to register signal handler for SIGPIPE in 'ps' and exit gracefully if
> SIGPIPE received.
I don't understand what's the problem with current behavior.
--
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