summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2011-05-03 21:11:36 +0200
committerMartin Lambers <marlam@marlam.de>2011-05-03 21:11:36 +0200
commitc3167b591a3dfaeb9405a4aaee70657de07cbd7c (patch)
treea8c527d8fe2a9fb45945bdcc78f33a02a07cedf1
parentf682325625ec0ddbd6bbc565581d47ee7eba214e (diff)
downloadbino-c3167b591a3dfaeb9405a4aaee70657de07cbd7c.tar.gz
Print proper signal description when catching a signal.
-rw-r--r--src/base/dbg.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/base/dbg.cpp b/src/base/dbg.cpp
index b99c983..2f94123 100644
--- a/src/base/dbg.cpp
+++ b/src/base/dbg.cpp
@@ -47,8 +47,7 @@ namespace dbg
#if HAVE_SIGACTION
static void signal_crash(int signum)
{
- msg::err(_("Caught signal %d (%s). Aborting."), signum,
- (signum == SIGILL ? "SIGILL" : (signum == SIGFPE ? "SIGFPE" : "SIGSEGV")));
+ msg::err(_("Caught signal %d (%s). Aborting."), signum, strsignal(signum));
crash();
}
#endif