sshd and SIGKILL

Roumen.Petrov at skalasoft.com Roumen.Petrov at skalasoft.com
Fri Sep 6 03:55:55 EST 2002


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);





More information about the openssh-unix-dev mailing list