From: Kay Sievers Date: Wed, 20 Apr 2011 16:36:01 +0000 (+0200) Subject: udevd: log signal number when spawned processes fail X-Git-Tag: 174~168 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7be212dbd21bca5ec041697109c63c6277d5425;p=systemd udevd: log signal number when spawned processes fail --- diff --git a/udev/udev-event.c b/udev/udev-event.c index a8dfff48..ef21ce8f 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -684,6 +684,9 @@ static int spawn_wait(struct udev_event *event, const char *cmd, pid_t pid) info(udev, "'%s'[%u] returned with exitcode %i\n", cmd, pid, WEXITSTATUS(status)); if (WEXITSTATUS(status) != 0) err = -1; + } else if (WIFSIGNALED(status)) { + err(udev, "'%s'[%u] terminated by signal %i\n", cmd, pid, WTERMSIG(status)); + err = -1; } else { err(udev, "'%s'[%u] unexpected exit with status 0x%04x\n", cmd, pid, status); err = -1;