mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
Revert "sd-device: do not call device_monitor_enable_receiving() for passed fd from pid1"
This reverts commit916707cca5
. As the CI results on #11076, #10754 is not fixed by the commit, but by986ab0d2dc
. So, let's revert the commit.
This commit is contained in:
parent
fd0ec39d38
commit
a153a1de75
@ -211,11 +211,9 @@ _public_ int sd_device_monitor_start(sd_device_monitor *m, sd_device_monitor_han
|
||||
return r;
|
||||
}
|
||||
|
||||
if (!m->bound) {
|
||||
r = device_monitor_enable_receiving(m);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
r = device_monitor_enable_receiving(m);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
m->callback = callback;
|
||||
m->userdata = userdata;
|
||||
|
Loading…
Reference in New Issue
Block a user