When I start to use a command to terminate an ongoing process, I can include a signal.
What is the difference between the signal 9
and the signal 15
?
When I start to use a command to terminate an ongoing process, I can include a signal.
What is the difference between the signal 9
and the signal 15
?
There is a manual page here - the ones I think you are referring to are:
Here are some other signals:
Ctrl+C on a running process in terminal sends the Keyboard Interupt signal:
SIGINT
2 Term Interrupt from keyboard
. This does not always stop the program straight way, often it will just finish that part of what it is doing and then stop.Ctrl+\ on a running process in terminal sends the Quit signal:
SIGQUIT
3 Core Quit from keyboard
The default signal sent by the
killall PROCESS-NAME
isSIGTERM
15 Term Termination signal
. This is also the default one sent fromtop
when pressing k and entering the process PIDTo make sure a process is stopped you can use
SIGKILL
(or alternatively,SIGSTOP
) as that cannot be caught, blocked, or ignored by the program.Here is a longer list from the above link, for reference: