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

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?