Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: interprocess communication ($!)

by tye (Cardinal)
on Oct 02, 2011 at 01:15 UTC ( #929090=note: print w/ replies, xml ) Need Help??


in reply to interprocess communication

it throws Illegal seek error.

I doubt that. Perl's msgget() never 'throws', it just returns undef to indication failure. If you are printing an error message that include $! that then say "Illegal seek", that likely has little to do with your call to msgget(). The underlying system's msgget(2) doesn't appear to be able to fail for that reason.

Most likely, you are reporting $! even though msgget() didn't actually fail or you are doing too much before $! is output such that the value of $! gets overwritten.

- tye        


Comment on Re: interprocess communication ($!)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-08-27 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (236 votes), past polls