Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: flock on Ubuntu 9.10

by trwww (Priest)
on Nov 13, 2009 at 23:35 UTC ( #807080=note: print w/replies, xml ) Need Help??


in reply to SOLVED [flock on Ubuntu 9.10]

I was under impression that flock would prevent this app from running multiple instances.

Apologies for the terseness, but I can't imagine for the life of me how the code you've posted could correspond to your impression in any way. How would locking a file prevent the current process from running?

Have a look at File::Pid::Quick.

regards,

Replies are listed 'Best First'.
Re^2: flock on Ubuntu 9.10
by ikegami (Pope) on Nov 13, 2009 at 23:57 UTC
    by dieing. That's what happens if he were to use LOCK_EX | LOCK_NB

      Indeed. I should have just kept the commentary to myself. Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2019-03-21 06:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How do you Carpe diem?





    Results (106 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!