summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-11-17 16:34:37 +0100
committerKay Sievers <kay.sievers@suse.de>2005-11-17 16:34:37 +0100
commit82de5983ab395df7f59ed53a51517a6066be3a57 (patch)
treeb5bf9055ef992cc8957fae7e050a9fcfb853bb20
parentc249f66a70f9ea623205f27f7931727acbafba9e (diff)
udevd: track killed event processes as failed
Thanks to Marco for catching this. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udevd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udevd.c b/udevd.c
index e1afb7622b..7978bdb08a 100644
--- a/udevd.c
+++ b/udevd.c
@@ -705,6 +705,8 @@ static void reap_sigchilds(void)
break;
if (WIFEXITED(status))
status = WEXITSTATUS(status);
+ else if (WIFSIGNALED(status))
+ status = WTERMSIG(status) + 128;
else
status = 0;
udev_done(pid, status);