forked from pool/systemd
701179bcff
- Update to new upstream release 221 OBS-URL: https://build.opensuse.org/request/show/313261 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=875
23 lines
873 B
Diff
23 lines
873 B
Diff
From: Robert Milasan <rmilasan@suse.com>
|
|
Date: Mon, 6 Aug 2012 13:35:34 +0000
|
|
Subject: udev netlink null rules
|
|
|
|
udevd race for netlink events (bnc#774646)
|
|
---
|
|
src/udev/udevd.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
Index: systemd-221/src/udev/udevd.c
|
|
===================================================================
|
|
--- systemd-221.orig/src/udev/udevd.c
|
|
+++ systemd-221/src/udev/udevd.c
|
|
@@ -917,6 +917,8 @@ static int on_uevent(sd_event_source *s,
|
|
dev = udev_monitor_receive_device(manager->monitor);
|
|
if (dev) {
|
|
udev_device_ensure_usec_initialized(dev, NULL);
|
|
+ if (manager->rules == NULL)
|
|
+ manager->rules = udev_rules_new(manager->udev, arg_resolve_names);
|
|
r = event_queue_insert(manager, dev);
|
|
if (r < 0)
|
|
udev_device_unref(dev);
|