Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #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
Node Status?
node history
Node Type: note [id://862496]
help
Chatterbox?
LanX flagelates erix with a signed markov chain
[erix]: oh well, it's holy week, right? Thick-skin week. I just read that in the Philippines, some RCs practice self-crucifixion. Tough cookies I'd like to see
[LanX]: already?
[erix]: I don't know really. I thought so.
[LanX]: April 16th
[erix]: ah no, 16 april. some time to go yet :)
[LanX]: I hate resurrection ... my back aches

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2017-03-23 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (285 votes). Check out past polls.