SIGTSTP
From Wikipedia, the free encyclopedia
|
|||||
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.
|