chiark / gitweb /
don't reenter get_udevd_msg() if message is ignored
authorKay Sievers <kay.sievers@suse.de>
Sun, 28 Aug 2005 21:14:59 +0000 (23:14 +0200)
committerKay Sievers <kay.sievers@suse.de>
Sun, 28 Aug 2005 21:14:59 +0000 (23:14 +0200)
Check all event sources with every iteration.

Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udevd.c

diff --git a/udevd.c b/udevd.c
index 3392eea..c75141f 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -946,9 +946,8 @@ int main(int argc, char *argv[], char *envp[])
                                if (uevent_netlink_active && msg->type == UDEVD_UEVENT_UDEVSEND && msg->seqnum != 0) {
                                        dbg("skip uevent_helper message, netlink is active");
                                        free(msg);
-                                       continue;
-                               }
-                               msg_queue_insert(msg);
+                               } else
+                                       msg_queue_insert(msg);
                        }
                }