summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-10-08 16:54:31 -0400
committerJune McEnroe <june@causal.agency>2023-10-08 16:54:31 -0400
commite9f93c6ff47bb5d765fecd8cfe056a170428457b (patch)
treede7aa086bc9768d90c3fd2e0892434cd77ce9fea
parentDon't LOG_PID (diff)
downloadkitd-e9f93c6ff47bb5d765fecd8cfe056a170428457b.tar.gz
kitd-e9f93c6ff47bb5d765fecd8cfe056a170428457b.zip
Use strsignal
-rw-r--r--kitd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kitd.c b/kitd.c
index 633032c..91a24ed 100644
--- a/kitd.c
+++ b/kitd.c
@@ -223,7 +223,7 @@ int main(int argc, char *argv[]) {
 			} else if (WIFSIGNALED(status)) {
 				int sig = WTERMSIG(status);
 				if (sig != SIGTERM) {
-					syslog(LOG_NOTICE, "child got signal %s", sys_signame[sig]);
+					syslog(LOG_NOTICE, "child got %s", strsignal(sig));
 				}
 			}