Commit 3adabc6a authored by Mukund Sivaraman's avatar Mukund Sivaraman

[1673] Output the signal name even when the process dumps core

parent 1cd0d0e4
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment