diff options
Diffstat (limited to '')
-rw-r--r-- | src/interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index b538ffc3e..db5959f3a 100644 --- a/src/interface.c +++ b/src/interface.c @@ -27,6 +27,7 @@ #include "ioops.h" #include "myfprintf.h" #include "os_compat.h" +#include "main_notify.h" #include "../config.h" @@ -494,7 +495,9 @@ int doIOForInterfaces(void) registered_IO_add_fds(&fdmax, &rfds, &wfds, &efds); + main_notify_lock(); selret = select(fdmax + 1, &rfds, &wfds, &efds, NULL); + main_notify_unlock(); if (selret < 0 && errno == EINTR) break; |