Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Re: Eval/Fork lesson of the day

by graff (Chancellor)
on May 15, 2002 at 17:28 UTC ( #166798=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Eval/Fork lesson of the day
in thread Eval/Fork lesson of the day

That makes sense, but it does look a bit tricky. So, I assume you would really want to hit the "undo" block if the fork fails; and maybe you would want to make sure the fork call is the last step in the eval block, so that if any of the other steps fail, you could save yourself the trouble of forking before undoing things.

When the fork "succeeds", then any problems encountered by the child will be asynchronous with respect to this process, right? And that might make it hard to "undo" whatever the child does, I think. (I'm sure there's a way to deal with that, but as I said, fork is not one of my strong suits.)

  • Comment on Re: Re: Re: Eval/Fork lesson of the day

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://166798]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2021-01-27 17:56 GMT
Find Nodes?
    Voting Booth?