sshd and file descriptors

Phil Howard phil-openssh-unix-dev at ipal.net
Fri Jun 28 01:22:45 EST 2002


On Thu, Jun 27, 2002 at 11:24:13AM -0300, Andreas Hasenack wrote:

| Em Thu, Jun 27, 2002 at 03:57:05PM +0200, Markus Friedl escreveu:
| > you could also do
| > 	sshd -t && kill -HUP `cat /var/run/sshd.pid`
| 
| Hmm, interesting, manpages are our best friends indeed:
|      sshd rereads its configuration file when it receives a hangup signal,
|      SIGHUP, by executing itself with the name it was started as, i.e.,
|      /usr/sbin/sshd.
| 
| I assumed it would only reread its configuration file, and not execute
| itself again.

It also forks a new process, too, as opposed to just exec within
the same process.

-- 
-----------------------------------------------------------------
| Phil Howard - KA9WGN |   Dallas   | http://linuxhomepage.com/ |
| phil-nospam at ipal.net | Texas, USA | http://phil.ipal.org/     |
-----------------------------------------------------------------



More information about the openssh-unix-dev mailing list