Extra sync to reduce damage of failing shutdowns
This commit is contained in:
parent
25dc0fc376
commit
6011237232
1 changed files with 3 additions and 0 deletions
|
@ -118,6 +118,9 @@ char **argv;
|
|||
/* Tell init to stop spawning getty's. */
|
||||
kill(1, SIGTERM);
|
||||
|
||||
/* Extra sync for the case where SIGTERM causes deadlock */
|
||||
sync();
|
||||
|
||||
/* Give everybody a chance to die peacefully. */
|
||||
printf("Sending SIGTERM to all processes ...\n");
|
||||
kill(-1, SIGTERM);
|
||||
|
|
Loading…
Reference in a new issue