summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-01-24 16:04:03 +0100
committerMaria Matejka <mq@ucw.cz>2022-02-03 10:03:37 +0100
commitee84ff14a10ebae1e000946be56ff1d1277ca7d5 (patch)
tree7586606e7b78b7177d3eb62b98b6119661025f2b
parent935b0b7124a72e561b3151bfce7cab6b9c7bd255 (diff)
Removing periodic wakeup of mainloop in debug version to search for notification issues
-rw-r--r--sysdep/unix/io.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index cb6a0754..d18dbca4 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2051,6 +2051,7 @@ static btime loop_time;
static void
io_update_time(void)
{
+ times_update();
last_io_time = current_time();
if (event_open)
@@ -2217,9 +2218,14 @@ io_loop(void)
timers_fire(&main_birdloop.time, 1);
io_close_event();
+#if DEBUGGING
+#define PERIODIC_WAKEUP 86400000
+#else
+#define PERIODIC_WAKEUP 3000
+#endif
restart_poll:
// FIXME
- poll_tout = ((reload_requested || events) ? 0 : 3000); /* Time in milliseconds */
+ poll_tout = ((reload_requested || events) ? 0 : PERIODIC_WAKEUP); /* Time in milliseconds */
if (t = timers_first(&main_birdloop.time))
{
times_update();