summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-08-28 23:14:59 +0200
committerKay Sievers <kay.sievers@suse.de>2005-08-28 23:14:59 +0200
commitd2ecd6a19d147ede317995cce1b21042291a6b19 (patch)
tree468139752f3f2ec17fb438757a72d13aff9edb73
parentc6303c1316e967ae2c52792b0560ee055ce4276e (diff)
don't reenter get_udevd_msg() if message is ignored
Check all event sources with every iteration. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udevd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/udevd.c b/udevd.c
index 3392eea1a1..c75141f9fa 100644
--- 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);
}
}