From: Markus Armbruster Date: Sun, 20 Jul 2008 14:22:46 +0000 (-0400) Subject: Implement wakeup of shutdown thread in shutdown_initiate() X-Git-Tag: v4.3.16~52 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=797f9b121ead0a1b82bf9ba46f6b3c355a5c51c6 Implement wakeup of shutdown thread in shutdown_initiate() Before, the shutdown command's action could be delayed by up to a minute when the shutdown thread was already running. --- diff --git a/src/server/shutdown.c b/src/server/shutdown.c index f7fb456c5..690e59aeb 100644 --- a/src/server/shutdown.c +++ b/src/server/shutdown.c @@ -71,7 +71,7 @@ shutdown_initiate(int mins_from_now) if (old_pending) pr_wall("The shutdown time has been changed to %d minutes!\n", mins_from_now); - /* FIXME wake up shutdown_sequence() */ + empth_wakeup(shutdown_thread); } else { shutdown_thread = empth_create(shutdown_sequence, 50 * 1024, 0, "shutdownSeq", NULL);