From 629453fba805b53bc0d719bdce4e345e683a36fd Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 21 Oct 2005 11:10:16 +0000 Subject: [PATCH] Added explanation of SIGKILL, REBOOT order. --- servers/pm/misc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/servers/pm/misc.c b/servers/pm/misc.c index 559adcb09..aadd84b6a 100644 --- a/servers/pm/misc.c +++ b/servers/pm/misc.c @@ -172,6 +172,11 @@ PUBLIC int do_reboot() return(EINVAL); } + /* Order matters here. When FS is told to reboot, it exits all its + * processes, and then would be confused if they're exited again by + * SIGKILL. So first kill, then reboot. + */ + check_sig(-1, SIGKILL); /* kill all processes except init */ tell_fs(REBOOT, 0, 0, 0); /* tell FS to synchronize */ -- 2.44.0