...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?
In reply to Re^3: Fork Wait and probably grandchildren
by RazorbladeBidet
in thread Fork Wait and probably grandchildren
by Discordanian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |