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

Re^3: File lock demo

by davido (Cardinal)
on Apr 24, 2021 at 17:27 UTC ( [id://11131689]=note: print w/replies, xml ) Need Help??


in reply to Re^2: File lock demo
in thread File lock demo

Thanks, that's good information. And how unfortunate, too. Every OS has its warts. I guess I'm happy with the devil I know (Linux).


Dave

Replies are listed 'Best First'.
Re^4: File lock demo
by LanX (Saint) on Apr 24, 2021 at 17:38 UTC
    > And how unfortunate, too.

    Thankfully I don't have the requirement for an "atomic deletion" of the file, because

    • I'm locking a semaphore file
    • the target files have unique names
    • their content is not security relevant
    • it's basically logging for observing state and retrieving errors

    But I'm trying to build my solution as OS agnostic as possible.

    I will let you know if I find something for "atomic deletion" on Win.°

    update

    °) though a use case might help to wrap my head around it. And Win has symlinks now...

    > I guess I'm happy with the devil I know (Linux).

    I still rather feel like a Linuxer even after 5 years in a Win project.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11131689]
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: (4)
As of 2024-03-29 10:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found