chiark / gitweb /
don't start udevd from udevsend
[elogind.git] / udevd.c
diff --git a/udevd.c b/udevd.c
index 93f02c5395d226dec85a66ab8d062c54d54ea589..7978bdb08abd05c1e8eb49d6ae7c776b1e7fecd9 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -139,9 +139,6 @@ enum event_state {
        EVENT_FAILED,
 };
 
-#define PATH_TO_NAME_CHAR              '@'
-#define EVENT_QUEUE_DIR                        ".udev/queue"
-#define EVENT_FAILED_DIR               ".udev/failed"
 static void export_event_state(struct uevent_msg *msg, enum event_state state)
 {
        char filename[PATH_SIZE];
@@ -708,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);