From: Ben Gras Date: Fri, 23 Feb 2007 12:54:02 +0000 (+0000) Subject: Don't sys_kill SELF if a PM exit fails; just generate a fault to get X-Git-Tag: v3.1.3~61 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=be30a639cd603843c5ad7a0ea418a519b8bbcc75;p=minix.git Don't sys_kill SELF if a PM exit fails; just generate a fault to get us killed through the kernel with PM finding out. This makes it unnecessary for servers and drivers to be able to do sys_kill generally, so KILL can go out of /etc/drivers.conf. --- diff --git a/lib/syslib/panic.c b/lib/syslib/panic.c index 72d732907..dae8adbcc 100644 --- a/lib/syslib/panic.c +++ b/lib/syslib/panic.c @@ -30,9 +30,6 @@ int num; /* number to go with format string */ } } - /* Try to signal ourself */ - sys_kill(SELF, SIGKILL); - /* If exiting nicely through PM fails for some reason, try to * commit suicide. E.g., message to PM might fail due to deadlock. */