From 797f9b121ead0a1b82bf9ba46f6b3c355a5c51c6 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 20 Jul 2008 10:22:46 -0400 Subject: [PATCH] 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. --- src/server/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.43.0