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.
This commit is contained in:
Markus Armbruster 2008-07-20 10:22:46 -04:00
parent 7e80101fac
commit 797f9b121e

View file

@ -71,7 +71,7 @@ shutdown_initiate(int mins_from_now)
if (old_pending) if (old_pending)
pr_wall("The shutdown time has been changed to %d minutes!\n", pr_wall("The shutdown time has been changed to %d minutes!\n",
mins_from_now); mins_from_now);
/* FIXME wake up shutdown_sequence() */ empth_wakeup(shutdown_thread);
} else { } else {
shutdown_thread = empth_create(shutdown_sequence, 50 * 1024, 0, shutdown_thread = empth_create(shutdown_sequence, 50 * 1024, 0,
"shutdownSeq", NULL); "shutdownSeq", NULL);