1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-24 21:34:08 +03:00

event: don't disarm invalid timerfd

This commit is contained in:
Lennart Poettering 2013-11-20 18:19:05 +01:00
parent 86befb4098
commit c57b5ca301

View File

@ -1412,6 +1412,9 @@ static int event_arm_timer(
a = prioq_peek(earliest);
if (!a || a->enabled == SD_EVENT_OFF) {
if (timer_fd < 0)
return 0;
if (*next == (usec_t) -1)
return 0;