aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-01 13:17:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-01 13:17:57 +0200
commitf76dae92a6b541853b0242c8792cd7ca0acf8c94 (patch)
treee3c6c0707b61ead6fd489a7b9c1f35bac1d59cfc
parenta228ec427a4ad92300ffbf2263f28c1e1d6fc18d (diff)
downloadnetlink-notify-f76dae92a6b541853b0242c8792cd7ca0acf8c94.tar.gz
netlink-notify-f76dae92a6b541853b0242c8792cd7ca0acf8c94.tar.zst
print signal name
-rw-r--r--netlink-notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlink-notify.c b/netlink-notify.c
index ef8a8be..c51a5cd 100644
--- a/netlink-notify.c
+++ b/netlink-notify.c
@@ -444,7 +444,7 @@ out:
/*** received_signal ***/
void received_signal(int signal) {
if (verbose > 0)
- printf("%s: Received signal: %d\n", program, signal);
+ printf("%s: Received signal: %s\n", program, strsignal(signal));
doexit++;
}