From c21e8b980a9e9b25fe9874c4f3fbb96f103bfc5e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 4 Oct 2018 19:09:01 +0200 Subject: [PATCH] minor: spawn_child_exited: use "signal" for signals in warning (#2417) --- spawn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spawn.c b/spawn.c index fb4afe69c..8b7a1c479 100644 --- a/spawn.c +++ b/spawn.c @@ -385,7 +385,8 @@ spawn_child_exited(pid_t pid, int status) running_child_t *child = running_child_array_lookup(&running_children, &needle); if (child == NULL) { - warn("Unknown child %d exited with status %d", (int) pid, status); + warn("Unknown child %d exited with %s %d", + (int)pid, WIFEXITED(status) ? "status" : "signal", status); return; } exit_callback = child->exit_callback;