Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: problems with fork

by perigeeV (Hermit)
on May 15, 2002 at 10:33 UTC ( [id://166682]=note: print w/replies, xml ) Need Help??


in reply to problems with fork

Your getstore is being executed by the parent. fork returns the PID to the parent, so the truth result of your if conditional means you are in the parent. A return value of 0 means you're inside the child. Also check a return of undef to make sure fork didn't puke.


Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 22:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found