Extra sync to reduce damage of failing shutdowns

This commit is contained in:
Erik van der Kouwe 2010-06-24 14:56:03 +00:00
parent 25dc0fc376
commit 6011237232

View file

@ -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);