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
Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.