Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: avoiding a race ("No extra", "no-user" locking--miniscule race of no importance)

by Kanji (Parson)
on Sep 28, 2010 at 20:17 UTC ( [id://862496]=note: print w/replies, xml ) Need Help??


in reply to Re^3: avoiding a race ("No extra", "no-user" locking--miniscule race of no importance)
in thread avoiding a race

If I knew how to do open(CREATE_NEW(*)) in Perl,

Assuming NFS isn't involved, you could do that with sysopen (or IO::File):-

use Fnctl; # O_* constants sysopen(FH, $file, O_CREAT|O_EXCL);

    --k.


  • Comment on Re^4: avoiding a race ("No extra", "no-user" locking--miniscule race of no importance)
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 22:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found