[Bug 7898] New: ps doesn't handle SIGPIPE correctly
bugzilla at busybox.net
bugzilla at busybox.net
Fri Feb 27 15:02:51 UTC 2015
https://bugs.busybox.net/show_bug.cgi?id=7898
Summary: ps doesn't handle SIGPIPE correctly
Product: Busybox
Version: unspecified
Platform: All
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: lexa at cfotr.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.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'
I suggest to register signal handler for SIGPIPE in 'ps' and exit gracefully if
SIGPIPE received.
--
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