diff options
author | Martin Mares <mj@ucw.cz> | 1999-02-13 20:15:36 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-02-13 20:15:36 +0000 |
commit | f4aabcee62890b7c3e999e188ab72752fbb20b79 (patch) | |
tree | 99daddcfbae637f7801f8b70b42ee2b5c9e91178 /sysdep/unix/io.c | |
parent | 7f3d1a0850ff7f240b2f240db6d44b3a5dee6d48 (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.c | 8 |
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 */ |