]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/udev-util.c
udev-util: allocate an event loop of our own for waiting
[thirdparty/systemd.git] / src / shared / udev-util.c
index 19d823c11d3e1f3ded4442cbf63c603498ea0674..4be9d7106c09df51391d93a8a0117027404b36ea 100644 (file)
@@ -133,7 +133,7 @@ int device_wait_for_initialization(sd_device *device, const char *subsystem, sd_
 
         /* Wait until the device is initialized, so that we can get access to the ID_PATH property */
 
-        r = sd_event_default(&event);
+        r = sd_event_new(&event);
         if (r < 0)
                 return log_error_errno(r, "Failed to get default event: %m");