KILL only wounding
Hi Guys,
As root, my kill command either takes a very long time (2-3 minutes) to terminate a program, or it doesn't terminate it at all. Is there a way to check why? |
Try killall processname
|
Are you trying to kill the same program all the time or is it like this with every program? Some programs can catch or ignore the default signal (which is really just a suggestion to stop).
|
If installed there is pkill command.
Also if using the KDE gui you can hit Alt-Ctrl-Esc to bring up a skull and crossbones. Move mouse over app and hit the mouse button. Brian1 |
It's the same with most programs however some are particuarly ignorant of the command (kaffeine for example seems to laugh mockingly). Brian1 mentioned pkill, is this the "die, die now" command I am looking for?
|
No, it's not. They all do the same, basically; if they don't work (usually
that only happens if the program is waiting for some IO to happen) you COULD try to look which resources it's trying to reach via lsof, and make the other processes holding on to it go away; or you could try shooting its parent. Cheers, Tink |
or maybe it being like a Windows app and reopening itself? try
Code:
kill <pid> ; kill <pid> ; kill <pid> I not sure, though... |
try adding a -SIGKILL flag on
kill -SIGKILL <pid> killall -SIGKILL <process> |
kill -9 <pid>
That is the "die, die now" command you're after, but before using that you should really find out why it isn't closing with just kill <pid> first. |
Quote:
Cheers, Tink |
-sigkill == -9
|
All times are GMT -5. The time now is 10:24 PM. |