aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNeil Horman <[email protected]>2009-09-23 15:56:54 -0700
committerLinus Torvalds <[email protected]>2009-09-24 07:21:00 -0700
commit725eae32df7754044809973034429a47e6035158 (patch)
tree96a66c65a085940a19374ee02c26fb8f1931a6be /tools/perf/scripts/python
parentae6d2ed7bb3877ff35b9569402025f40ea2e1803 (diff)
exec: make do_coredump() more resilient to recursive crashes
Change how we detect recursive dumps. Currently we have a mechanism by which we try to compare pathnames of the crashing process to the core_pattern path. This is broken for a dozen reasons, and just doesn't work in any sort of robust way. I'm replacing it with the use of a 0 RLIMIT_CORE value. Since helper apps set RLIMIT_CORE to zero, we don't write out core files for any process with that particular limit set. It the core_pattern is a pipe, any non-zero limit is translated to RLIM_INFINITY. This allows complete dumps to be captured, but prevents infinite recursion in the event that the core_pattern process itself crashes. [[email protected]: coding-style fixes] Signed-off-by: Neil Horman <[email protected]> Reported-by: Earl Chew <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions