in reply to Re: Re: eval and fork: [bad?] magic
in thread eval and fork: [bad?] magic
But as I mentioned in one of my replies on that other thread, I am (like you) not conversant with using fork from within an eval block -- check that thread for yourself, and good luck!sub qmail_requeue { ... my $pid = fork; ... if (not defined $pid) { &tempfail ("Unable to fork. (#4.3.0) - $!"); } elsif ($pid == 0) { # In child. PUT THIS PART IN AN EVAL BLOCK eval { close EIN; ... } } else { # in parent ...
|
|---|