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:17:55 +0200
commitb5d347b4ef72d0f8cc032259dd5cf7dc13774098 (patch)
treea9e2e59a769b89357a10e351d57879be955c9e6a
parent0e350b4bab6f6c3c72bf0c0ab1705d8214ccdc44 (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);
}