From 1008e35a3ad996280992080832bb54ad9bd9f36e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 1 Oct 2014 13:19:59 +0200 Subject: print signal name --- mpd-notification.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mpd-notification.c b/mpd-notification.c index 00a9110..0e35664 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -33,7 +33,7 @@ void received_signal(int signal) { case SIGINT: case SIGTERM: if (verbose > 0) - printf("Received signal %d, preparing exit.\n", signal); + printf("Received signal %s, preparing exit.\n", strsignal(signal)); doexit++; mpd_send_noidle(conn); @@ -42,7 +42,7 @@ void received_signal(int signal) { case SIGHUP: case SIGUSR1: if (verbose > 0) - printf("Showing last notification again.\n"); + printf("Received signal %s, showing last notification again.\n", strsignal(signal)); if (!notify_notification_show(notification, &error)) { g_printerr("%s: Error \"%s\" while trying to show notification again.\n", program, error->message); @@ -50,7 +50,7 @@ void received_signal(int signal) { } break; default: - fprintf(stderr, "Reveived signal %d, no idea what to do...\n", signal); + fprintf(stderr, "Reveived signal %s (%d), no idea what to do...\n", strsignal(signal), signal); } } -- cgit v1.2.3-70-g09d2