John Andersen wrote:
On Mon, May 5, 2008 at 2:33 PM, Sloan
wrote: John Andersen wrote:
Sighup ("signal heads up" is how I remember this) is sent to the logger that the name of the host has changed.
Close, but no cigar. HUP means "hangup" as when a session is ended (revealing AT&T roots)
Joe
Perhaps historically, but not with regard to daemons in linux.
That's because deamons detach themselves from the terminal, and therefore don't have to worry about any controlling terminal getting hung up, and so the signal gets re-used, shall we say, as a SIG-REINITIALIZE. However SIGHUP is still SIGHUP for every other process out there...if you close a pseudo-tty with an editor running in it, the kernel will issue SIGHUP to the editor, so that it has an opportunity to take appropriate action.
In that context, specifically in this case with regard to the logging daemon, it is as Sam and I mentioned, a signal to the daemon to re-initialize.
But that's ONLY for deamons, and is an isolated use of SIGHUP. For all processes EXCEPT deamons (and only because deamons don't have a controlling TTY) SIGHUP means SIGNAL: HUNG UP (i.e. the telephone modem connection was lost). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org