diff options
author | Maria Matejka <mq@jmq.cz> | 2021-11-23 11:13:11 +0000 |
---|---|---|
committer | Maria Matejka <mq@jmq.cz> | 2021-11-23 11:13:11 +0000 |
commit | 821344c781a99a4f559949a7497617b64c061c82 (patch) | |
tree | 878df97d83216fb9f85f25b7e1d0ffdb8198e1ea /sysdep/unix/io.c | |
parent | 4ba991f19c2f8aa893a723f29775c50e1370ed07 (diff) |
Stored pages release routine
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r-- | sysdep/unix/io.c | 4 |
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)) |