in reply to Possible waitpid problem - pid reuse?
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Possible waitpid problem - pid reuse?
by tachyon (Chancellor) on Sep 13, 2004 at 00:53 UTC |