SIGTSTP

From Wikipedia, the free encyclopedia

SIGTSTP
Description: Terminal stop signal
Default action: Suspends the process
SA_SIGINFO macros
None

On POSIX-compliant platforms, SIGTSTP is the signal sent to a computer program by its controlling terminal when the user requests that it be suspended. The symbolic constant for SIGTSTP is defined in the header file signal.h. Symbolic signal names are used because signal numbers can vary across platforms.

[edit] Etymology

SIG is a common prefix for signal names. TSTP is an abbreviation for tty stop, indicating that stop has been typed at the tty. (Tty is itself an abbreviation for teletypewriter, an archaic type of computer terminal.)

[edit] Usage

SIGTSTP is sent to a process by its controlling terminal when the user presses the special SUSP key combination (usually control-Z). By default, SIGTSTP causes the process receiving it to stop until a SIGCONT signal is received. Unlike the similar SIGSTOP signal, a process can register a signal handler for or ignore SIGTSTP.


POSIX Signals
SIGABRT | SIGALRM | SIGFPE | SIGHUP | SIGILL | SIGINT | SIGKILL | SIGPIPE | SIGQUIT | SIGSEGV | SIGTERM | SIGUSR1 | SIGUSR2 | SIGCHLD | SIGCONT | SIGSTOP | SIGTSTP | SIGTTIN | SIGTTOU | SIGBUS | SIGPOLL | SIGPROF | SIGSYS | SIGTRAP | SIGURG | SIGVTALRM | SIGXCPU | SIGXFSZ | Realtime Signals are user definable—SIGRTMIN+n through SIGRTMAX.
Common non-POSIX signals and synonyms
SIGIOT | SIGEMT | SIGSTKFLT | SIGIO | SIGCLD | SIGINFO | SIGPWR (SIGINFO) | SIGLOST | SIGWINCH | SIGUNUSED
In other languages