If you are going to use the ‘top’ command to kill a process, you should try sending the ‘2’ signal first, not ‘9’. Sending ‘9’ is kind of like pulling the plug on your computer instead of issuing a shutdown command. It can sometimes have some undesirable consequences. Sending ‘2’ has the same effect as ctrl+c.

For reference, here are the different signals you can send to stop a process and what they mean: (from kill man page)

 1       HUP (hang up)
 2       INT (interrupt)
 3       QUIT (quit)
 6       ABRT (abort)
 9       KILL (non-catchable, non-ignorable kill)
 14      ALRM (alarm clock)
 15      TERM (software termination signal)

Leave a Reply

Your email address will not be published. Required fields are marked *