Of course, if anything needs to be done in the child after its sub-process finishes but before the child exits, then you wouldn't want to use "exec()" -- any code located after an "exec()" call is never reached (exec does not return to the caller).
In reply to Re: Possible waitpid problem - pid reuse?
by graff
in thread Possible waitpid problem - pid reuse?
by tsteiger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |