in reply to (OT) Question on flock

Whether you're using a cloned version of UNIX or the real thing, file locking does not prevent another process from modifying the file. File locks on UNIXish operating systems are advisory. See flock(2). The documentation also documents that locking over NFS does not work.

On Windows, you cannot overwrite a locked file. Maybe that is what you're thinking of?

Replies are listed 'Best First'.
Re^2: (OT) Question on flock
by kprasanna_79 (Hermit) on Oct 02, 2014 at 06:34 UTC
    Thanks corion


    But our code was working earlier which all of the sudden after moved to the cloned version of unix it stopped working. When we debugged the code it stops at flock function. Is there any way we can overcome this. Need expert advise here.


    -Prasanna.K

      How does your question relate to Perl?

      I think communicating with your OS vendor is the more appropriate approach here. This site is for and about Perl, and not about obscure "UNIX clones".

      ... cloned version of unix ... Is there any way we can overcome this. Need expert advise here.

      Contact support :) fireup debugger/strace/...