Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Terminating process the hard way
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Thu Mar 02, 2006 7:01 pm    Post subject: Terminating process the hard way Reply with quote

I had some trouble with a samba share and it got unmounted. Two programs (amarok and cp) were still accessing it so they crashed (freezed). I remounted the share, but they still don't respond. Now I tried to kill the processes, but they don't want to be terminated. In 'ps aux' they have a 'D' in the status column and I know this is some kind of uninterruptable thing because the process is doing something important, but the kill man page says 'KILL 9 exit this signal may not be blocked'. I tried 'kill -9 <pid>' as root, 'killall -9 amarokapp' and played with 'killproc' but the processes (both amarok and cp) just keep running. Is there any harder way to kill these, because I would find it rather strange to reboot just to terminate these processes.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Mar 02, 2006 7:11 pm    Post subject: Reply with quote

man ps shows:
Quote:
D Uninterruptible sleep (usually IO)

So, as with zombie processes, you can't kill what's already dead :)

Ignore the processes, they are doing nothing and not taking up resources.
Back to top
View user's profile Send private message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Thu Mar 02, 2006 7:32 pm    Post subject: Reply with quote

PaulBredbury wrote:
man ps shows:
Quote:
D Uninterruptible sleep (usually IO)

So, as with zombie processes, you can't kill what's already dead :)

Ignore the processes, they are doing nothing and not taking up resources.


That's certainly true, but I can't launch another amarok process now because it thinks there's already one running. So it tried to activate that one and exits. So I want to kill the existing amarokapp so I can launch a new one.
Back to top
View user's profile Send private message
widan
Veteran
Veteran


Joined: 07 Jun 2005
Posts: 1512
Location: Paris, France

PostPosted: Thu Mar 02, 2006 8:01 pm    Post subject: Re: Terminating process the hard way Reply with quote

t0maz wrote:
In 'ps aux' they have a 'D' in the status column and I know this is some kind of uninterruptable thing because the process is doing something important, but the kill man page says 'KILL 9 exit this signal may not be blocked'.

If they are in D-state, it means they are executing code in the kernel (most likely waiting for something to happen related to the "old" smb mount, which will most likely never happen, so they will stay stuck there). Signals are only delivered on return from kernel mode to user mode, so you won't be able to kill them with signals. Only way to kill them will be a reboot.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum