Works by inserting an intermediate fork() before exec'ing argv, and
then waiting. If the inner process calls exit(0), then the
intermediate process just calls exit(0) as well. If not, then the
intermediate process forks again, exec's /bin/sh, waits, and then
propagates the first inner process' exit status.
Works by inserting an intermediate fork() before exec'ing argv, and then waiting. If the inner process calls exit(0), then the intermediate process just calls exit(0) as well. If not, then the intermediate process forks again, exec's /bin/sh, waits, and then propagates the first inner process' exit status.