sig-monitor: dump the stack on SIGABRT
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 8 Aug 2017 10:17:55 +0000 (12:17 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 8 Aug 2017 10:17:55 +0000 (12:17 +0200)
Change-Id: Id21c444d6d18a78f731458a43519a131515385c0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/sig-monitor.c

index bd1311a..fbc5b1f 100644 (file)
@@ -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);
 }