in reply to Re: Child keeps parent from returning...?
in thread Child keeps parent from returning...?
There's only one problem left: if the close STDERR succeeds (which it usually does), but the exec fails, the die "..." (which outputs to STDERR) won't have anywhere to write... In other words, you probably want to redirect STDERR instead of closing it, in order to take care of this case. Or save and restore the original STDERR before/after the exec (see open for how to do the latter).
|
|---|