sshd and SIGKILL
Jim Knoble
jmknoble at pobox.com
Fri Sep 6 04:53:53 EST 2002
Circa 2002-09-05 20:55:55 +0300 dixit Roumen.Petrov at skalasoft.com:
: On command:
: #kill -9 `cat /var/run/sshd.pid`
: sshd leave pid file !
:
: sshd.c code:
: ===============
: ....
: /*
: * Arrange to restart on SIGHUP. The handler needs
: * listen_sock.
: */
: signal(SIGHUP, sighup_handler);
:
: signal(SIGTERM, sigterm_handler);
: signal(SIGQUIT, sigterm_handler);
: ....
: ===============
:
: Missing line is :
: signal(SIGKILL, sigterm_handler);
Ummm, no. Under traditional Unix, POSIX, BSD, and SysV, no signal
handler may be set for either SIGKILL or SIGSTOP.
Refer to:
http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?signal+3
http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?sigvec+3
--
jim knoble | jmknoble at pobox.com | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 262 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020905/31048d41/attachment.bin
More information about the openssh-unix-dev
mailing list