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