Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Ensuring only one copy of a perl script is running at a time

by tye (Cardinal)
on Dec 19, 2006 at 18:41 UTC ( #590739=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Ensuring only one copy of a perl script is running at a time
in thread Ensuring only one copy of a perl script is running at a time

It seems the point is that flock is documented to have behavior that varies between platforms. If flock is documented as always providing advisory locking, then I think that is a documentation bug (it reads to me that it certain may provide only advisory locking, but I didn't find a clear statement that manditory locking isn't the result on some platforms -- it quickly points to perlport, in fact).

So, if flock is documented to behave differently on different platforms, then writing code that depends on flock being advisory is not portable (which it obviously isn't, in practice).

It looks to me like you missed the point. And I don't see where any technical point was "just refuted" when it could have just been checked by Moron. But I certainly could be missing something.

- tye        


Comment on Re^5: Ensuring only one copy of a perl script is running at a time
Re^6: Ensuring only one copy of a perl script is running at a time
by ikegami (Pope) on Dec 19, 2006 at 18:59 UTC

    And I don't see where any technical point was "just refuted" when it could have just been checked by Moron.

    I was pointing out the root cause of the problem was that Windows usedmandatory locking. To this, he replied advisory locking was being used.

    It looks to me like you missed the point.

    I had no comment to make on whether flock should or shouldn't be used. I'm not sure I'd call that missing the point. I was explaining the root cause of the problem in response to someone claiming it was caused by DATA behaving differently on Windows and unix. (It doesn't.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-07-13 13:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls