mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-25 23:21:33 +03:00
sd-event: Fix systemd crash when using timer units.
There was a copy-paste error introduced in commit c2ba3ad660
which causes the following error when using timer units:
Assertion '(x->type == SOURCE_MONOTONIC && y->type == SOURCE_MONOTONIC) || (x->type == SOURCE_REALTIME && y->type == SOURCE_REALTIME)'
failed at src/libsystemd/sd-event/sd-event.c:264, function latest_time_prioq_compare(). Aborting.
This commit is contained in:
parent
9e82ffa040
commit
9ac441c0f4
@ -771,7 +771,7 @@ _public_ int sd_event_add_realtime(sd_event *e,
|
|||||||
sd_event_time_handler_t callback,
|
sd_event_time_handler_t callback,
|
||||||
void *userdata) {
|
void *userdata) {
|
||||||
|
|
||||||
return event_add_time_internal(e, ret, SOURCE_REALTIME, &e->realtime_fd, CLOCK_REALTIME, &e->realtime_earliest, &e->monotonic_latest, usec, accuracy, callback, userdata);
|
return event_add_time_internal(e, ret, SOURCE_REALTIME, &e->realtime_fd, CLOCK_REALTIME, &e->realtime_earliest, &e->realtime_latest, usec, accuracy, callback, userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int event_update_signal_fd(sd_event *e) {
|
static int event_update_signal_fd(sd_event *e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user