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

Re: problems with fork

by perigeeV (Hermit)
on May 15, 2002 at 10:33 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2022-12-05 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?