in reply to Getting exit status from forked script

The exit value will be available in $? after you've reaped the process with waitpid. The manual of waitpid could have told you that as well.

Abigail

  • Comment on Re: Getting exit status from forked script