mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
manager: remove timer fd explicitly from epoll
Forked processes can keep the old fd alive triggering epoll over and over again else. https://bugs.freedesktop.org/show_bug.cgi?id=61697
This commit is contained in:
parent
95f1b47d27
commit
f1324eaa68
@ -1674,6 +1674,8 @@ static int process_event(Manager *m, struct epoll_event *ev) {
|
||||
NULL);
|
||||
|
||||
/* Restart the watch */
|
||||
epoll_ctl(m->epoll_fd, EPOLL_CTL_DEL, m->time_change_watch.fd,
|
||||
NULL);
|
||||
close_nointr_nofail(m->time_change_watch.fd);
|
||||
watch_init(&m->time_change_watch);
|
||||
manager_setup_time_change(m);
|
||||
|
Loading…
Reference in New Issue
Block a user