Subject: Re: Need quick way to crash NetBSD box.
To: James Chacon <jchacon@genuity.net>
From: Robert Elz <kre@munnari.OZ.AU>
List: port-i386
Date: 08/28/2000 10:15:36
Date: Sun, 27 Aug 2000 00:30:32 -0400 (EDT)
From: James Chacon <jchacon@genuity.net>
Message-ID: <200008270430.AAA11118@dragon.tools.gtei.net>
| There's already code sprinkled throughout the kernel to treat init special
| so why not make it immune to this as well?
It is, and has been since well before NetBSD existed. init ignores
any signal whose current state is SIG_DFL (and any which is SIG_IGN of
course). All that is left are those that it has arranged to catch.
Since SIGKILL can't be changed from SIG_DFL, init always ignores that one,
the only effect of "kill -9 1" is that (if the kernel has DIAGNOSTIC set)
it prints "Process (pid 1) got signal 9" (on the console & via syslog).
kre