X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udevd.c;h=98e3d54b3382981fdf28c479ea45f7cb4f449d4d;hb=226c074d6d27a789a1dfba869f993b53fe135958;hp=c94fdc74d8ed4fc5c85a66e489fd26cc9116c170;hpb=37854ffc9ae60da66d5525225c93eb1754a780bb;p=elogind.git diff --git a/udevd.c b/udevd.c index c94fdc74d..98e3d54b3 100644 --- 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);