Help! Zombies


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help! Zombies
# 15  
Old 10-04-2013
Quote:
Originally Posted by alister
You can't kill that which is already dead.
Quote:
Originally Posted by Don Cragun
Actually, you can kill zombies; they just won't notice that they've been killed (again).
In my post, the word "kill" does not refer to the system call nor the utility of the same name; it's merely colloquial English.

Quote:
Originally Posted by Don Cragun
Code:
kill 0 pid_of_zombie

will complete successfully telling you that the zombie hasn't been reaped yet.
That's not necessarily true. From POSIX :: functions :: kill:
Quote:
Existing implementations vary on the result of a kill() with pid indicating an inactive process (a terminated process that has not been waited for by its parent). Some indicate success on such a call (subject to permission checking), while others give an error of [ESRCH]. Since the definition of process lifetime in this volume of POSIX.1-2008 covers inactive processes, the [ESRCH] error as described is inappropriate in this case. In particular, this means that an application cannot have a parent process check for termination of a particular child with kill(). (Usually this is done with the null signal; this can be done reliably with waitpid().
Regards,
Alister
This User Gave Thanks to alister For This Post:
# 16  
Old 10-04-2013
Quote:
Originally Posted by blackrageous
Contrary to popular belief you can't always kill a zombie.
true! it keeps respawning.. the process / path is listed below, and it looks like a management process, i can't do a kill -9,,, suggestions? thanks
# 17  
Old 10-04-2013
Quote:
Originally Posted by olyanderson
true! it keeps respawning..
The process respawning has nothing to do with it being a zombie.

If you read some of the links in the search I posted earlier then you'll see it appears to be expected behaviour for ia64_corehw to have at least 1 zombie hanging around all the time.

Why do you need to get rid of the zombie? If there's only 1 at any one time it's not affecting anything.
# 18  
Old 10-04-2013
Quote:
Originally Posted by olyanderson
i can't do a kill -9,,, suggestions?
As has already been mentioned several times by several members, a zombie is already dead. There's nothing more you can do to it.

If there are only a few of them, I suggest you ignore them. If there are a lot of them, then the the parent of these zombies needs to be debugged so that it either properly wait()s on its children or ignores SIGCHLD.

jim_mcnamara illustrated the zombie cycle in his most recent post in this thread.

Regards,
Alister

Last edited by alister; 10-04-2013 at 01:37 PM..
# 19  
Old 10-04-2013
ok, i am convinced with all the input you have ALL given me. thanks for your time, i will consider this issue - not even worth the headache anymore lol..... have a good day all :0)

pete aka olynaderson
# 20  
Old 10-04-2013
what problem are you trying so solve?
# 21  
Old 10-04-2013
Quote:
Originally Posted by blackrageous
what problem are you trying so solve?
oh sorry, i am saying this issue has been resolved. im done Smilie i was thanking all those who responded.

maybe next time Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Programming

Ways to eliminate Zombies?

what are the precautions to be taken care for avoiding zombie process ? (8 Replies)
Discussion started by: Gopi Krishna P
8 Replies

2. UNIX for Dummies Questions & Answers

Zombies

I had a problem deleting a zombie process. It refused to be killed. I even tried kill -9 process# but it refused. Any other way of killing it? (7 Replies)
Discussion started by: victorn
7 Replies

3. Programming

FreeBSD, fork() and zombies

i'm writing small http proxy server (accept client -> connect to remote proxy server -> recv client's request -> send to remote proxy server -> get responce from remote proxy server -> send answer to client -> close connection to client and to remote proxy server) and having problems with fork().... (2 Replies)
Discussion started by: PsycoMan
2 Replies

4. HP-UX

How can i kill Zombies

Hi All I need help, how can i kill zombies instead of rebooting the system. Regards System: sna Tue Apr 5 17:50:23 2005 Load averages: 0.05, 0.15, 0.22 168 processes: 157 sleeping, 5 running, 6 zombies Cpu states: CPU LOAD USER NICE... (5 Replies)
Discussion started by: cgege
5 Replies

5. UNIX for Dummies Questions & Answers

No zombies!

Is there a command that will automaticaly go through and kill all children when you try to kill the parent process. Thanks, David (3 Replies)
Discussion started by: nucca
3 Replies

6. UNIX for Dummies Questions & Answers

Zombies

Okay, I'm working within ansi C and Sun Solaris 7. I have a problem with zombies. I'm currently using the kill command to return the status of a process. How do I check for Zombie PIDs or the right function to return its PID from within a C program? (1 Reply)
Discussion started by: karpolu
1 Replies
Login or Register to Ask a Question