Various types of signals
SIGINT
is the interrupt signal. The terminal sends it to the foreground process when the user presses ctrl-c. The default behavior is to terminate the process, but it can be caught or ignored. The intention is to provide a mechanism for an orderly, graceful shutdown.
is the dump core signal. The terminal sends it to the foreground process when the user presses ctrl-\.
The default behavior is to terminate the process and dump core, but it
can be caught or ignored. The intention is to provide a mechanism for
the user to abort the process. You can look at
as "user-initiated happy termination" and
as "user-initiated unhappy termination."
SIGTERM
is the termination signal. The default behavior is to terminate the process, but it also can be caught or ignored. The intention is to kill the process, gracefully or not, but to first allow it a chance to cleanup.
is the kill signal.
The only behavior is to kill the process, immediately. As the process
cannot catch the signal, it cannot cleanup, and thus this is a signal of
last resort.
is the pause signal. The only behavior is to pause the process; the signal cannot be caught or ignored. The shell uses pausing (and its counterpart, resuming via
SIGINT
is the interrupt signal. The terminal sends it to the foreground process when the user presses ctrl-c. The default behavior is to terminate the process, but it can be caught or ignored. The intention is to provide a mechanism for an orderly, graceful shutdown.
SIGQUIT
SIGINT
SIGQUIT
SIGTERM
is the termination signal. The default behavior is to terminate the process, but it also can be caught or ignored. The intention is to kill the process, gracefully or not, but to first allow it a chance to cleanup.
SIGKILL
SIGSTOP
SIGCONT) to implement job control.
No comments:
Post a Comment