LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   KILL only wounding (https://www.linuxquestions.org/questions/linux-software-2/kill-only-wounding-474571/)

Elomis 08-16-2006 07:38 PM

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?

Caeda 08-16-2006 07:39 PM

Try killall processname

linux=future 08-16-2006 07:57 PM

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).

Brian1 08-16-2006 08:05 PM

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

Elomis 08-16-2006 08:15 PM

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?

Tinkster 08-16-2006 09:05 PM

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

timothyb89 08-16-2006 09:08 PM

or maybe it being like a Windows app and reopening itself? try
Code:

kill <pid> ; kill <pid> ; kill <pid>
to send three kill signal at the same time.
I not sure, though...

AAnarchYY 08-16-2006 09:24 PM

try adding a -SIGKILL flag on
kill -SIGKILL <pid>
killall -SIGKILL <process>

cs-cam 08-16-2006 09:41 PM

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.

Tinkster 08-16-2006 09:47 PM

Quote:

Originally Posted by cs-cam
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.

And even that won't work if the process is waiting on IO ;}


Cheers,
Tink

AAnarchYY 08-16-2006 09:49 PM

-sigkill == -9


All times are GMT -5. The time now is 10:24 PM.