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:
parent
7e80101fac
commit
797f9b121e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue