From: Mukund Sivaraman Date: Wed, 7 Mar 2012 04:22:50 +0000 (+0530) Subject: [1673] Output the signal name even when the process dumps core X-Git-Tag: trac2351_base~226^2~116^2~41^2~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3adabc6a1ece55ee01bc5b0d6aee8aebca2510d2;p=thirdparty%2Fkea.git [1673] Output the signal name even when the process dumps core --- diff --git a/src/lib/python/isc/bind10/component.py b/src/lib/python/isc/bind10/component.py index c767b7da20..b854743974 100644 --- a/src/lib/python/isc/bind10/component.py +++ b/src/lib/python/isc/bind10/component.py @@ -227,11 +227,11 @@ class BaseComponent: signame = get_signame(sig) exit_str = "process stopped with exit status %d (killed by signal %d: %s)" % (exit_code, sig, signame) elif os.WIFSIGNALED(exit_code): + sig = os.WTERMSIG(exit_code) + signame = get_signame(sig) if os.WCOREDUMP(exit_code): - exit_str = "process dumped core with exit status %d" % (exit_code) + exit_str = "process dumped core with exit status %d (killed by signal %d: %s)" % (exit_code, sig, signame) else: - sig = os.WTERMSIG(exit_code) - signame = get_signame(sig) exit_str = "process terminated with exit status %d (killed by signal %d: %s)" % (exit_code, sig, signame) else: exit_str = "unknown condition with exit status %d" % (exit_code)