| Author |
Message |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 7:30 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, Digby Tarvin <digbyt@acm.org>:
| Quote: |
Think of the 'D' state as saying "The operating system will be damaged
if the process is allowed to exit now".
DigbyT
|
thanks, I'm understanding...^__^
regards and good night at all.
--
heba
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Digby Tarvin *nix forums Guru Wannabe
Joined: 25 Jan 2006
Posts: 178
|
Posted: Tue Jul 11, 2006 7:10 pm Post subject:
Re: Force kill a process?
|
|
|
On Tue, Jul 11, 2006 at 08:19:42PM +0200, heba wrote:
| Quote: | 2006/7/11, helices <helices@helices.org>:
man ps
Read this section:
PROCESS STATE CODES
thanks very much. But I've a question. Is it possible change the D
state in other state that it is possible to kill the process?
thanks again
|
The kernel trumps any user process, including root, so no - if
the kernel code doesn't want to exit, you can't force it (except
of course by shutting down - because then it doesn't matter if
the termination damages the system).
The 'D' state is just a an indicator telling you that the process is
suspended at some point in the kernel code where the author has
decided it would not be safe to return prematurely. It is not
the 'D' state that is stopping you from killing it - it just tells
you that the kernel won't let you..
In general the 'D' state tells you that the process is suspended
waiting on some I/O operation to complete, and the code doesn't
allow for any way to exit earlier.
As an example, if you issue a write request to a serial port when
XOFF has been asserted, the system won't let the task exit
until the write is finished. If this is just normal flow control,
that won't take too long, but if it is being used as a screen pause
by someone who has gone home, it could imply an arbitrarily long
delay...
Think of the 'D' state as saying "The operating system will be damaged
if the process is allowed to exit now".
DigbyT
--
Digby R. S. Tarvin digbyt(at)digbyt.com
http://www.digbyt.com
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 6:30 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, helices <helices@helices.org>:
| Quote: |
man ps
Read this section:
PROCESS STATE CODES
|
thanks very much. But I've a question. Is it possible change the D
state in other state that it is possible to kill the process?
thanks again
--
M.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
helices *nix forums beginner
Joined: 12 May 2005
Posts: 14
|
Posted: Tue Jul 11, 2006 6:10 pm Post subject:
Re: Force kill a process?
|
|
|
* heba <mat.r.gl@gmail.com> [2006:07:11:19:55:24+0200] scribed:
| Quote: | 2006/7/11, John Hasler <jhasler@debian.org>:
You cannot kill processes that are in the D state. They are in
uninterruptable sleep in the kernel.
--
John Hasler
excuse me for my ignorance, but what is the D state, please?
|
man ps
Read this section:
PROCESS STATE CODES
--
Best Regards,
helices
-
Dare to fix things before they break . . .
-
Our capacity for understanding is inversely proportional to how much
we think we know. The more I know, the more I know I don't know . . .
-- |
|
| Back to top |
|
 |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 6:00 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, John Hasler <jhasler@debian.org>:
| Quote: | You cannot kill processes that are in the D state. They are in
uninterruptable sleep in the kernel.
--
John Hasler
|
excuse me for my ignorance, but what is the D state, please?
Thanks and regards.
--
heba
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 2:40 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, Hans du Plooy <hans@ananzi.co.za>:
| Quote: | On Tue, 2006-07-11 at 09:28 -0400, Alec Berryman wrote:
Can you 'invoke-rc.d proftpd stop'?
It runs without any error, but the processes are stillthere.
will ask the process to exit. kill -9 <pid> will tell it to quit, now.
Doesn't do anything :-(
Thanks
Hans
|
other way to kill the process...
_exit number of pid
_Exit number of pid
exit number of pid
these the easier commands, other are:
wait
wait2
wait4
waitpid
read the man and good luck.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
John Hasler *nix forums Guru
Joined: 20 Feb 2005
Posts: 687
|
Posted: Tue Jul 11, 2006 2:40 pm Post subject:
Re: Force kill a process?
|
|
|
You cannot kill processes that are in the D state. They are in
uninterruptable sleep in the kernel.
--
John Hasler
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 2:10 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, Hans du Plooy <hans@ananzi.co.za>:
| Quote: | It runs without any error, but the processes are stillthere.
will ask the process to exit. kill -9 <pid> will tell it to quit, now.
Doesn't do anything :-(
|
Do you try to control if exist a file named:
nohup.out
please?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Hans du Plooy *nix forums Guru Wannabe
Joined: 12 Mar 2005
Posts: 119
|
Posted: Tue Jul 11, 2006 2:00 pm Post subject:
Re: Force kill a process?
|
|
|
On Tue, 2006-07-11 at 09:28 -0400, Alec Berryman wrote:
| Quote: | Can you 'invoke-rc.d proftpd stop'?
It runs without any error, but the processes are stillthere. |
| Quote: | will ask the process to exit. kill -9 <pid> will tell it to quit, now.
|
Doesn't do anything :-(
Thanks
Hans
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
heba *nix forums beginner
Joined: 11 Jul 2006
Posts: 9
|
Posted: Tue Jul 11, 2006 1:40 pm Post subject:
Re: Force kill a process?
|
|
|
2006/7/11, Linas virblis <0x0007@gmail.com>:
| Quote: |
How do I kill this?
"kill -9 3123 18183 19079" maybe?
|
only one process at time, so:
your pc# kill -9 3123
your pc#
your pc# kill -9 18183
your pc#
your pc# kill -9 19079
regards |
|
| Back to top |
|
 |
Hans du Plooy *nix forums Guru Wannabe
Joined: 12 Mar 2005
Posts: 119
|
Posted: Tue Jul 11, 2006 1:40 pm Post subject:
Re: Force kill a process?
|
|
|
On Tue, 2006-07-11 at 16:29 +0300, Linas Žvirblis wrote:
| Quote: | "kill -9 3123 18183 19079" maybe?
Doesn't seem to do anything |
| Quote: | I'm not exactly in a position to restart the server.
What do you mean? You are not the owner of the process? In that case you
will not be able to kill it in the first place.
|
I'm root. I know rebooting the box sorts it out, but I cannot do that
right now - people are using it...
Thanks
Hans
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Linas Zvirblis *nix forums Guru Wannabe
Joined: 12 Dec 2005
Posts: 161
|
Posted: Tue Jul 11, 2006 1:40 pm Post subject:
Re: Force kill a process?
|
|
|
Hans du Plooy wrote:
| Quote: | mercury:/home/www/web8/web# ps ax | grep ftp
3123 ? Ds 0:00 proftpd: (accepting connections)
18183 ? D 0:00 /usr/sbin/proftpd
19079 pts/0 D 0:00 /usr/sbin/proftpd
How do I kill this?
|
"kill -9 3123 18183 19079" maybe?
| Quote: | I'm not exactly in a position to restart the server.
|
What do you mean? You are not the owner of the process? In that case you
will not be able to kill it in the first place.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Pol Hallen *nix forums beginner
Joined: 19 Jan 2006
Posts: 35
|
Posted: Tue Jul 11, 2006 1:40 pm Post subject:
Re: Force kill a process?
|
|
|
| Quote: | mercury:/home/www/web8/web# ps ax | grep ftp
3123 ? Ds 0:00 proftpd: (accepting connections)
18183 ? D 0:00 /usr/sbin/proftpd
19079 pts/0 D 0:00 /usr/sbin/proftpd
Hi, |
u can use: kill -9 process_number
or do /etc/init.d/proftpd stop(or restart)
or use tcpkill utility :-)
Pol
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Alec Berryman *nix forums beginner
Joined: 15 Mar 2005
Posts: 19
|
Posted: Tue Jul 11, 2006 1:30 pm Post subject:
Re: Force kill a process?
|
|
|
Hans du Plooy on 2006-07-11 15:24:34 +0200:
| Quote: | mercury:/home/www/web8/web# ps ax | grep ftp
3123 ? Ds 0:00 proftpd: (accepting connections)
18183 ? D 0:00 /usr/sbin/proftpd
19079 pts/0 D 0:00 /usr/sbin/proftpd
How do I kill this? I'm not exactly in a position to restart the
server.
|
Can you 'invoke-rc.d proftpd stop'?
If that doesn't work, read the man page for kill(1). kill <process id>
will ask the process to exit. kill -9 <pid> will tell it to quit, now.
kill works outside Debian's mechanisms for starting and stopping
services, though. |
|
| Back to top |
|
 |
Hans du Plooy *nix forums Guru Wannabe
Joined: 12 Mar 2005
Posts: 119
|
Posted: Tue Jul 11, 2006 1:30 pm Post subject:
Force kill a process?
|
|
|
mercury:/home/www/web8/web# ps ax | grep ftp
3123 ? Ds 0:00 proftpd: (accepting connections)
18183 ? D 0:00 /usr/sbin/proftpd
19079 pts/0 D 0:00 /usr/sbin/proftpd
How do I kill this? I'm not exactly in a position to restart the
server.
Thanks
Hans
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|