summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2021-02-04 15:52:42 +0100
committerMaria Matejka <mq@ucw.cz>2021-11-22 19:05:43 +0100
commit1db83a507a9ae287815d62733d1337074993b433 (patch)
treec18bab7948e6fd3d1ce6a4ce00f8f2e58b9e9bd6 /sysdep/unix/io.c
parentfeb17ced234bad13ae64b52a3f86241f74517997 (diff)
Locking subsystem: Just a global BIRD lock to begin with.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 3d67d0a7..29467867 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -36,6 +36,7 @@
#include "lib/resource.h"
#include "lib/socket.h"
#include "lib/event.h"
+#include "lib/locking.h"
#include "lib/timer.h"
#include "lib/string.h"
#include "nest/iface.h"
@@ -2263,7 +2264,9 @@ io_loop(void)
/* And finally enter poll() to find active sockets */
watchdog_stop();
+ the_bird_unlock();
pout = poll(pfd, nfds, poll_tout);
+ the_bird_lock();
watchdog_start();
if (pout < 0)