Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: fork - child executes code outside of block

by hippo (Bishop)
on Mar 28, 2018 at 14:13 UTC ( [id://1211916]=note: print w/replies, xml ) Need Help??


in reply to fork - child executes code outside of block

Your assertion (assumption?) that the child should not be able to execute that print line is false. Why should it not when it is outside the entire "if" block?

  • Comment on Re: fork - child executes code outside of block

Replies are listed 'Best First'.
Re^2: fork - child executes code outside of block
by cyadav (Initiate) on Mar 28, 2018 at 14:56 UTC

    Ah! thanks :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-19 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found