I am working a problem I'm having with the qmail-scanner scripts. (not my code, but my users are losing email as a result).
I'm having a specific problem where a function within an eval is forking and attemping to communicate via a pipe between the child and parent. (this works).
There is an intermitent error where the child fails to open stdin (using the pipe input fd) and the author of the code decided that the child should exit.
I understand that a eval can not trap the exit and I would expect the child to exit.
But it appears that the parent is also exiting based on the lack of additional log messages from the parent.
I've been using eval and fork for years (just never together) and I'm seeking validation that the child exit within an eval can/should cause a parent to also exit.
Thanks,
Mark.
PS. I have searched the site and read the following node.
http://www.perlmonks.com/index.pl?node_id=166538
In reply to eval and fork: [bad?] magic by mhoulist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |