summaryrefslogtreecommitdiff
path: root/sysdep/unix/io.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-13 20:15:36 +0000
committerMartin Mares <mj@ucw.cz>1999-02-13 20:15:36 +0000
commitf4aabcee62890b7c3e999e188ab72752fbb20b79 (patch)
tree99daddcfbae637f7801f8b70b42ee2b5c9e91178 /sysdep/unix/io.c
parent7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48 (diff)
Perform gracious shutdown upon receipt of SIGTERM. Finally we can
test the whole protocol shutdown code... :)
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r--sysdep/unix/io.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index d8713f4c..aa4f652a 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 */