Don't kill processes by signals in process group 0, and do a sync before

killing all processes in FS reboot.
This commit is contained in:
Ben Gras
2006-02-03 15:21:00 +00:00
parent bcb67841a5
commit 040cebcefe
2 changed files with 4 additions and 0 deletions

View File

@@ -258,6 +258,9 @@ PUBLIC int do_reboot()
/* Only PM may make this call directly. */
if (who != PM_PROC_NR) return(EGENERIC);
/* Sync before the drivers die. */
do_sync();
/* Do exit processing for all leftover processes and servers. */
for (i = 0; i < NR_PROCS; i++) { m_in.slot1 = i; do_exit(); }