chiark / gitweb /
udevd: track killed event processes as failed
[elogind.git] / 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);