Before, the shutdown command's action could be delayed by up to a
minute when the shutdown thread was already running.
if (old_pending)
pr_wall("The shutdown time has been changed to %d minutes!\n",
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);
} else {
shutdown_thread = empth_create(shutdown_sequence, 50 * 1024, 0,
"shutdownSeq", NULL);