mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
sd-event: sd_event_prepare - stay in PREPARED if sd_event_wait() indicates that no sources are pending
This commit is contained in:
parent
c45a5a7446
commit
6d148a842e
|
@ -2256,7 +2256,11 @@ _public_ int sd_event_prepare(sd_event *e) {
|
|||
|
||||
pending:
|
||||
e->state = SD_EVENT_PREPARED;
|
||||
return sd_event_wait(e, 0);
|
||||
r = sd_event_wait(e, 0);
|
||||
if (r == 0)
|
||||
e->state = SD_EVENT_PREPARED;
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
_public_ int sd_event_wait(sd_event *e, uint64_t timeout) {
|
||||
|
|
Loading…
Reference in a new issue