Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: flocking a socket

by clintp (Curate)
on Jan 25, 2002 at 19:45 UTC ( #141515=note: print w/ replies, xml ) Need Help??


in reply to flocking a socket

This code:

flock(HANDLE, 2);
Probably isn't doing what you think it is. flock() has a return value, and it's important. Try this:
flock(HANDLE, 2) || warn "flock failed: $!";
I won't even begin to nag you about fcntl constants, you've got a harsh lesson ahead of you already. :)


Comment on Re: flocking a socket
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2015-07-28 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls