Lock initproc when we send SIGINT to init during shutdown.
This commit is contained in:
parent
46333fa556
commit
7c5cd82d2e
@ -157,7 +157,9 @@ shutdown_nice(int howto)
|
||||
|
||||
/* Send a signal to init(8) and have it shutdown the world */
|
||||
if (initproc != NULL) {
|
||||
PROC_LOCK(initproc);
|
||||
psignal(initproc, SIGINT);
|
||||
PROC_UNLOCK(initproc);
|
||||
} else {
|
||||
/* No init(8) running, so simply reboot */
|
||||
boot(RB_NOSYNC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user