Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Because wait ...
...waits for a child process to terminate and returns the pid of the deceased process...So while child process A dies and it returns some PID > 0 child process B continues to run. It will return -1 when there are no child processes. Unlikely to happen, but since it is linked to wait(2) - a possibility, perhaps?
-------------- "But what of all those sweet words you spoke in private?" "Oh that's just what we call pillow talk, baby, that's all." In reply to Re^3: Fork Wait and probably grandchildren
by RazorbladeBidet
|
|