print a back trace whenever any signal is received.

This commit is contained in:
gardners 2013-02-15 18:15:18 +10:30 committed by Jeremy Lakeman
parent e551017896
commit 1e76772c3a

View File

@ -360,6 +360,8 @@ void signal_handler(int signal)
char buf[80];
signame(buf, sizeof(buf), signal);
INFOF("Caught %s", buf);
dump_stack();
switch (signal) {
case SIGHUP:
case SIGINT: