minor: spawn_child_exited: use "signal" for signals in warning (#2417)
This commit is contained in:
parent
622a330e63
commit
c21e8b980a
3
spawn.c
3
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);
|
running_child_t *child = running_child_array_lookup(&running_children, &needle);
|
||||||
if (child == NULL) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
exit_callback = child->exit_callback;
|
exit_callback = child->exit_callback;
|
||||||
|
|
Loading…
Reference in New Issue