]> granicus.if.org Git - procps-ng/commit
Allow core file generation by ps command (rhbz#871825, rhbz#512857)
authorJaromir Capik <jcapik@redhat.com>
Wed, 12 Dec 2012 14:37:42 +0000 (15:37 +0100)
committerCraig Small <csmall@enc.com.au>
Thu, 13 Dec 2012 11:17:03 +0000 (22:17 +1100)
commitc1f10d11bc7fbab3af54a2b16e6db721b7e44f5c
tree41eb65911dea2e9382848f758666a9006ef15079
parentcfd0dbd336edd12b37fa17c66c044a06661265e8
Allow core file generation by ps command (rhbz#871825, rhbz#512857)

Since the ps command handles signals with it's own handler, it doesn't create
core files when something wrong happens. The attached patch restores the ps
command ability to create core files by calling the default handler once we
print our custom message. The original RH's workaround masked SIGABRT and
SIGSEGV signals and that would conflict with the original intention of the
custom signal handler and also with the filtering patch I sent in my previous
email. Moreover, this solution generates core for all relevant signals (SIGFPE,
etc.).

Bug-Redhat: http://bugzilla.redhat.com/871825
Bug-Redhat: http://bugzilla.redhat.com/512857
Reference: http://www.freelists.org/post/procps/PATCH-Allow-core-file-generation-by-ps-command-rhbz871825-rhbz512857

Signed-off-by: Craig Small <csmall@enc.com.au>
ps/display.c