Following is a list of process signals and their descriptions:
Num Signal Description
=== ====== ===========
1 HUP #hangup
2 INT #interrupt
3 QUIT #stop running
9 KILL #unconditionally terminate
11 SEGV #segment violation
15 TERM #terminate if possible
17 STOP #stop unconditionally, but don't terminate
18 TSTP #stop or pause but continue to run in background
19 CONT #resume execution after STOP or TSTP
Okay, great, so why do we need to know about these signals? Most often these signals come in handy when a rogue process needs to be kill-ed.
Ways to send signals to processes using the kill command:
#Let's say we want to send the HUP signal to a process with the PID 1234
kill -1 1234
kill -s HUP 1234
kill -SIGHUP 1234
(kill uses the TERM signal by default)
Please do note that sending the KILL signal might sometimes result in files getting corrupted.
Source : thevoidghost[dot]wordpress[dot]com
0 comments:
Post a Comment