chiark / gitweb /
path_id: support SAS devices
[elogind.git] / udevd.c
diff --git a/udevd.c b/udevd.c
index c94fdc74d8ed4fc5c85a66e489fd26cc9116c170..98e3d54b3382981fdf28c479ea45f7cb4f449d4d 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -200,6 +200,10 @@ static void export_event_state(struct uevent_msg *msg, enum event_state state)
                        if (loop_msg->devpath && strcmp(loop_msg->devpath, msg->devpath) == 0)
                                return;
 
+               list_for_each_entry(loop_msg, &exec_list, node)
+                       if (loop_msg->devpath && strcmp(loop_msg->devpath, msg->devpath) == 0)
+                               return;
+
                /* move failed events to the failed directory */
                if (state == EVENT_FAILED) {
                        create_path(filename_failed);
@@ -527,7 +531,6 @@ static struct uevent_msg *get_msg_from_envbuf(const char *buf, int buf_size)
                free(msg);
                return NULL;
        }
-
        return msg;
 }
 
@@ -581,7 +584,6 @@ static struct uevent_msg *get_udevd_msg(void)
 
        switch (usend_msg.type) {
        case UDEVD_UEVENT_UDEVSEND:
-       case UDEVD_UEVENT_INITSEND:
                info("udevd event message received");
                envbuf_size = size - offsetof(struct udevd_msg, envbuf);
                dbg("envbuf_size=%i", envbuf_size);