Log::Di...::Flock(3)

🌸 NAME 🌸

Okay so bestie, welcome to Log::Di...::Flock(3) β€” this is from User Contributed Perl Documentation, no cap. It's Log::Dispatch::FileRotate::Flock - File Locking Functions for Log::Dispatch::FileRotate. It's giving internal helper energy, iykyk πŸ’….

πŸ’– VERSION πŸ’–

version 1.38 β€” periodt.

✨ SYNOPSIS ✨

Internal Use Only!

πŸ¦‹ DESCRIPTION πŸ¦‹

Internal Use Only! Like literally, vibe check: this is not the public main-character API, bestie. 🫢

πŸ’… METHODS πŸ’…

πŸŽ€ safe_flock($filehandle, $flags): boolean

This one is lowkey a wrapper around flock() that handles things such as interruption of the call by a signal automatically. Returns a boolean, per the signature. No cap.

🧚 flopen($path): ($filehandle, $inode)

This function is similar to BSD's flopen() function. It opens a file, obtains an exclusive lock on it using flock(), and handles a bunch of race conditions that can happen. On success it returns the opened filehandle and the inode of the file; on failure it returns nothing. Slay.

🌈 SOURCE 🌈

The development version is on github at https://https://github.com/mschout/perl-log-dispatch-filerotate and may be cloned from git://https://github.com/mschout/perl-log-dispatch-filerotate.git. Yes, the double https://https:// is literally what's printed, don't come for me πŸ’€.

πŸ› BUGS πŸ›

Please report any bugs or feature requests on the bugtracker website https://github.com/mschout/perl-log-dispatch-filerotate/issues.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. Fr fr, receipts help.

πŸ‘‘ AUTHOR πŸ‘‘

Michael Schout <mschout@cpan.org>.

This software is copyright (c) 2005 by Mark Pfeiffer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


xoxo, bestie πŸ’– this Log::Di...::Flock(3) page is from perl v5.32.1, dated 2021-05-27. Slay and goodbye πŸ‘‘

πŸ“¦ where this page comes from