« mac on intel | Main | q on macbook pro »

killing unreactive process

Usually when you have an unreactive application, you can terminate it with the cmd-alt-esc dialog "quit application immediately". But sometimes it is a process which won't show up in that list. Then I get the terminal at hand, type top -u to find the PID, quit top with q and type kill . For most of the processes, this will do it perfectly. But today I had a process which was using up 100% of one of my cores and will not terminate with the above method.

How I got it killed finally:
$ kill -stop 24730
$ kill -term 24730
$ kill -kill 24730

After the kill -stop, the process stopped using my CPU at 100%. Maybe it would have been enough with only -stop and then -kill directly, but I haven't yet had the opportunity to test it.

Update: Well, it happened again, and I could verify my theory.

Update 2: I just found out that sudo kill -kill is actually sufficient to end a process who won't react to a 'normal' kill.

Post a comment