Skip to main content

Thread: using wait to remove zombie process from ps


hey,
understand calling wait() essential remove details zombie process process table , ps output.

doubt is,
1)"when child exits, parent process receive sigchld signal indicate 1 of children has finished executing."
what's need of wait(), parent getting notification anyways right ? zombiepid ?

2)does wait() take care of removing process table or,
when wait() returns zombiepid, again have write code kill zombie process ?

please advise.
thanks.

ok, till here.
when child process terminates, sends sigchld it's parent.

don't is,
parent then calls wait(), in order exit status of it's child.

mean ?
1) wait() returns pid of child right ? mean exit status ?

2)pid_t wait(int* status)
status here ?
how pass status ?

3)the parent calls wait() after has received sigchld ?

i'm confused !


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk using wait to remove zombie process from ps


Ubuntu

Comments

Popular posts from this blog

Thread: Firefox print dialog doesn't remember settings

Error 400 - Photoshop services are not available

After Effects error:creating resource file on Windows