summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-08-08 12:17:55 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-08-08 12:21:35 +0200
commit615cad14e67a2317b9aee95b663dbc21c851a180 (patch)
tree6e29c64b3dcb1c87ce71b9e4305ce277ad87d910
parent8ba97707ddb6d74b8c62631888bb0a982ab26f01 (diff)
sig-monitor: dump the stack on SIGABRT
Change-Id: Id21c444d6d18a78f731458a43519a131515385c0 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r--src/sig-monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sig-monitor.c b/src/sig-monitor.c
index bd1311a9..fbc5b1fb 100644
--- a/src/sig-monitor.c
+++ b/src/sig-monitor.c
@@ -130,6 +130,8 @@ static inline void timeout_delete()
static void on_signal_terminate (int signum)
{
ERROR("Terminating signal %d received: %s", signum, strsignal(signum));
+ if (signum == SIGABRT)
+ dumpstack(3);
exit(1);
}