summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-04-20 18:36:01 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-04-20 18:36:01 +0200
commitc7be212dbd21bca5ec041697109c63c6277d5425 (patch)
treef82f1483f47a4efb690e9b2c1e108c44a71f1c39 /udev
parenta178e7fe90c5f9a4f9f196575102ab6812bb5973 (diff)
udevd: log signal number when spawned processes fail
Diffstat (limited to 'udev')
-rw-r--r--udev/udev-event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c
index a8dfff48bf..ef21ce8f6b 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;