From f4aabcee62890b7c3e999e188ab72752fbb20b79 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 Feb 1999 20:15:36 +0000 Subject: Perform gracious shutdown upon receipt of SIGTERM. Finally we can test the whole protocol shutdown code... :) --- sysdep/unix/io.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysdep/unix/io.c') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index d8713f4..aa4f652 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -747,11 +747,19 @@ io_loop(void) { async_config(); async_config_flag = 0; + continue; } if (async_dump_flag) { async_dump(); async_dump_flag = 0; + continue; + } + if (async_shutdown_flag) + { + async_shutdown(); + async_shutdown_flag = 0; + continue; } /* And finally enter select() to find active sockets */ -- cgit v1.2.3