a0eb8a1c64
- Fix handle-etc-HOSTNAME.patch to properly set hostname at startup when using /etc/HOSTNAME. (forwarded request 173532 from fcrozat) OBS-URL: https://build.opensuse.org/request/show/173533 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=136
23 lines
951 B
Diff
23 lines
951 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-202/src/udev/udevd.c
|
|
===================================================================
|
|
--- systemd-202.orig/src/udev/udevd.c
|
|
+++ systemd-202/src/udev/udevd.c
|
|
@@ -1407,6 +1407,8 @@ int main(int argc, char *argv[])
|
|
dev = udev_monitor_receive_device(monitor);
|
|
if (dev != NULL) {
|
|
udev_device_set_usec_initialized(dev, now(CLOCK_MONOTONIC));
|
|
+ if (rules == NULL)
|
|
+ rules = udev_rules_new(udev, resolve_names);
|
|
if (event_queue_insert(dev) < 0)
|
|
udev_device_unref(dev);
|
|
}
|