07-14-2009
yes I agree but unfortunally today we my mentor tought just that two ways
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do i kill a zombie process. Is it that only root can kill a zombie process. (8 Replies)
Discussion started by: orca
8 Replies
2. UNIX for Advanced & Expert Users
I would like to create a zombie process so that I can test monitoring software functionality. Any techniques? (2 Replies)
Discussion started by: swhitney
2 Replies
3. Programming
hi!
i am writing a c program which has the following structure:
main()
{
child1
child1.1
child2
child2.1
}
the child1.1 and 2.1 are becoming zombies...
how can i handle this...
thanx (1 Reply)
Discussion started by: mridula
1 Replies
4. Linux
Hi
What is the command to find only the zombie processes??
How to write the code in C to fetch the no. of zombie processes??
Thanx (5 Replies)
Discussion started by: jeenat
5 Replies
5. Linux
I have RHES4 machine with VRTSralus - Backup Exec agent installed there and running as a service. The agent hiccups sometimes and turns into defunct state. The problem is that I cannot kill it anyway., it stays there forever until the machine is rebooted. I wonder if anyone had such an experience... (1 Reply)
Discussion started by: will_mike
1 Replies
6. Shell Programming and Scripting
Hi
I need help because I don't know if it is possible to add a find inside a cat.
like I have a file with the pid of the process that use to became zombie. And I have the same pid stored in the var (pid1)
now, I have no clue how to check if the the find finds the pid or even if it's... (2 Replies)
Discussion started by: ruben.rodrigues
2 Replies
7. AIX
Is there an equivilant to the preap command in AIX that would allow me to get rid of a zombie process. I am new to AIX, moving over from Solaris and in the past I have been able to preap the pid on the defunct process to clean them up. I have looked around and the best I can see is that it may... (3 Replies)
Discussion started by: sboots
3 Replies
8. Solaris
Dear Bos,
I have one server,everday if I check with command TOP always present zombie,like below:
last pid: 4578; load averages: 0.15, 0.11, 0.13 07:56:15
298 processes: 295 sleeping, 1... (10 Replies)
Discussion started by: fredginting
10 Replies
9. UNIX for Dummies Questions & Answers
Hey guys,
So i did some research on the site but previous posts answered most of my questions about zombie processes but I have one question that didnt seem to get addressed
"how do you find the parent or parent ID of a zombie process so you can kill it?"
I know p -kill doesnt always just... (6 Replies)
Discussion started by: kingpin007
6 Replies
10. UNIX for Advanced & Expert Users
What is the overhead associated with zombie process?Is it running out of process-ID?:confused:
Since some information is stored in process table..
Thanks in Advance (4 Replies)
Discussion started by: jois
4 Replies
wait(3) Library Functions Manual wait(3)
NAME
wait - check child process status
SYNTAX
#include <wait.h>
int wait_nohang(&wstat);
int wait_stop(&wstat);
int wait_stopnohang(&wstat);
int wait_pid(&wstat,pid);
int wait_exitcode(wstat);
int wait_crashed(wstat);
int wait_stopped(wstat);
int wait_stopsig(wstat);
int pid;
int wstat;
DESCRIPTION
wait_nohang looks for zombies (child processes that have exited). If it sees a zombie, it eliminates the zombie, puts the zombie's exit
status into wstat, and returns the zombie's process ID. If there are several zombies, wait_nohang picks one. If there are children but no
zombies, wait_nohang returns 0. If there are no children, wait_nohang returns -1, setting errno appropriately.
wait_stopnohang is similar to wait_nohang, but it also looks for children that have stopped.
wait_stop is similar to wait_stopnohang, but if there are children it will pause waiting for one of them to stop or exit.
wait_pid waits for child process pid to exit. It eliminates any zombie that shows up in the meantime, discarding the exit status.
wait_stop and wait_pid retry upon error_intr.
STATUS PARSING
If the child stopped, wait_stopped is nonzero; wait_stopsig is the signal that caused the child to stop.
If the child exited by crashing, wait_stopped is zero; wait_crashed is nonzero.
If the child exited normally, wait_stopped is zero; wait_crashed is zero; and wait_exitcode is the child's exit code.
SEE ALSO
wait(2), error(3)
wait(3)