chiark / gitweb /
udevd: track killed event processes as failed
authorKay Sievers <kay.sievers@suse.de>
Thu, 17 Nov 2005 15:34:37 +0000 (16:34 +0100)
committerKay Sievers <kay.sievers@suse.de>
Thu, 17 Nov 2005 15:34:37 +0000 (16:34 +0100)
Thanks to Marco for catching this.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udevd.c

diff --git a/udevd.c b/udevd.c
index e1afb76..7978bdb 100644 (file)
--- 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);