commit 558b1d0158845a90419ea7df4d72ea50eb713c7f
parent 8c0b60fc611e06c28af5c520242c4b1836b31230
Author: sin <sin@2f30.org>
Date: Thu, 7 Aug 2014 22:24:19 +0100
Use strsignal() when logging
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/crond.c b/crond.c
@@ -186,11 +186,11 @@ waitjob(void)
loginfo("complete: pid: %d returned: %d time: %s",
pid, WEXITSTATUS(status), ctime(&t));
else if (WIFSIGNALED(status) == 1)
- loginfo("complete: pid: %d terminated by signal: %d time: %s",
- pid, WTERMSIG(status), ctime(&t));
+ loginfo("complete: pid: %d terminated by signal: %s time: %s",
+ pid, strsignal(WTERMSIG(status)), ctime(&t));
else if (WIFSTOPPED(status) == 1)
- loginfo("complete: pid: %d stopped by signal: %d time: %s",
- pid, WSTOPSIG(status), ctime(&t));
+ loginfo("complete: pid: %d stopped by signal: %s time: %s",
+ pid, strsignal(WSTOPSIG(status)), ctime(&t));
}
}