summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMaria Matejka <mq@jmq.cz>2021-11-23 11:13:11 +0000
committerMaria Matejka <mq@jmq.cz>2021-11-23 11:13:11 +0000
commit821344c781a99a4f559949a7497617b64c061c82 (patch)
tree878df97d83216fb9f85f25b7e1d0ffdb8198e1ea /sysdep/unix/io.c
parent4ba991f19c2f8aa893a723f29775c50e1370ed07 (diff)
Stored pages release routine
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index dd385c80..91d717d0 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -2193,6 +2193,7 @@ static int short_loops = 0;
#define WORK_EVENTS_MAX 10
void pipe_drain(int fd);
+void check_stored_pages(void);
void
io_loop(void)
@@ -2215,6 +2216,9 @@ io_loop(void)
timers_fire(&main_birdloop.time, 1);
io_close_event();
+ /* Try to release some memory if possible */
+ check_stored_pages();
+
// FIXME
poll_tout = (events ? 0 : 3000); /* Time in milliseconds */
if (t = timers_first(&main_birdloop.time))