in reply to Re: forked die() in eval block has counterintuitive behavior?
in thread forked die() in eval block has counterintuitive behavior?
Based upon what I've heard in this node and elsewhere due to this experience, I now beleive that CPAN modules that use fork(), open-to-pipe, or similar calls MUST account for the possibility of being called inside an eval -- or else document that the code MUST NOT be called inside an eval without checking for a fork gone wrong.
I don't believe this is especially burdensome to CPAN authors, because the patch to Mail::Mailer that solved this problem was only a few lines of code (most of which were splitting out a logic condition into an if/then/else). Am I on the wrong track here?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: forked die() in eval block has counterintuitive behavior?
by sgifford (Prior) on May 24, 2005 at 15:05 UTC |