projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3e8032
)
udev-util: allocate an event loop of our own for waiting
author
Lennart Poettering
<lennart@poettering.net>
Wed, 3 Apr 2019 14:12:41 +0000
(16:12 +0200)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 3 Apr 2019 17:15:14 +0000
(
02:15
+0900)
We can't use the per-thread default one here, as it might already be
running (for example, that's the case in portabled), and our event loops
are not recursive, hence running them a second time is not OK.
src/shared/udev-util.c
patch
|
blob
|
history
diff --git
a/src/shared/udev-util.c
b/src/shared/udev-util.c
index 19d823c11d3e1f3ded4442cbf63c603498ea0674..4be9d7106c09df51391d93a8a0117027404b36ea 100644
(file)
--- a/
src/shared/udev-util.c
+++ b/
src/shared/udev-util.c
@@
-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");