mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-30 18:07:01 +00:00
print a back trace whenever any signal is received.
This commit is contained in:
parent
e551017896
commit
1e76772c3a
2
server.c
2
server.c
@ -360,6 +360,8 @@ void signal_handler(int signal)
|
|||||||
char buf[80];
|
char buf[80];
|
||||||
signame(buf, sizeof(buf), signal);
|
signame(buf, sizeof(buf), signal);
|
||||||
INFOF("Caught %s", buf);
|
INFOF("Caught %s", buf);
|
||||||
|
dump_stack();
|
||||||
|
|
||||||
switch (signal) {
|
switch (signal) {
|
||||||
case SIGHUP:
|
case SIGHUP:
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
|
Loading…
Reference in New Issue
Block a user