in reply to Re: Multiple forks get re-executed
in thread Multiple forks get re-executed

Which Situations are those? Page 716 of Camel 3 states, in part:
Be careful to end the child code with an exit...
I'm not sure about the use of concatenation in the if, either. Do you often find yourself writing subroutines that may or may not need to fork?

Replies are listed 'Best First'.
Re: Re: Re: Multiple forks get re-executed
by Anonymous Monk on Jul 10, 2001 at 13:11 UTC
    The situations are Resource-allocations in the parent (and caller) on behalf of the child, that the child must return to the pool on end, but wants to do in the caller because of lexical restrictions or clarity of writing.
    Do you often find yourself writing subroutines that may or may not need to fork?
    
    Of course in testing and debugging. Debugging a (multiply) forked sub is a PITA(TM).