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