$RodHat_/search
signal reference

SIGHUP

Hangup: the controlling terminal closed.

Linux number
1
FreeBSD number
1
Default action
Terminate the process
Catch, block or ignore
Allowed
Standard
POSIX.1-1990

Sent to a session leader when its terminal goes away, which is why closing an ssh session kills your jobs. Daemons have no terminal, so many reuse it to mean "reread your config". That is a convention, not a rule: check the daemon before you send it, because the default action is still to die. Use nohup or setsid to cut a job loose from the terminal.

Sources

  1. signal(7), Linux man-pages
  2. signal(3), FreeBSD manual

Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.