SIGTSTP
Stop typed at the terminal (Ctrl-Z).
- Linux number
- 20
- FreeBSD number
- 18
- Default action
- Stop the process
- Catch, block or ignore
- Allowed
- Standard
- POSIX.1-1990
The catchable version of SIGSTOP. An editor or curses program catches it, restores the terminal, then re-raises the signal with the default action so it actually stops; on SIGCONT it sets the terminal up again and redraws. That round trip is what makes Ctrl-Z in vi leave your shell usable.
Compare it
- SIGSTOP vs SIGTSTP · How do you pause a process?
Sources
Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.