Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Why sometimes kill does not work

Answer:

Sometimes you might noticed that kill statement does not work in some cases, e.g.

kill program

The reason is that the kill statement send a SIGTERM signal to the target process by default and tell the process to terminate itself. However, this signal can be catch up by the process and therefore can be ignored if the program's writer choose to ignore.

To kill a process at all cost, use

kill -9 program

SIGKILL will be send instead of SIGTERM, which cannot be caught or ignored.

  1. Best way to kill all child processes forked by a given program
  2. Apache restart explained
  3. How to kill a TCP connection using tcpkill?
  4. How to kill a running process by name?
  5. Kill all processes listening on a particular port

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>