minor: spawn_child_exited: use "signal" for signals in warning (#2417)

This commit is contained in:
Daniel Hahler 2018-10-04 19:09:01 +02:00 committed by GitHub
parent 622a330e63
commit c21e8b980a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;