https://github.com/dnmfarrell/ipc-lockfile
https://github.com/dnmfarrell/ipc-lockfile
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dnmfarrell/ipc-lockfile
- Owner: dnmfarrell
- License: other
- Created: 2015-10-28T05:09:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-02T23:56:07.000Z (over 10 years ago)
- Last Synced: 2025-01-16T16:49:17.334Z (over 1 year ago)
- Language: Perl
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.pod
- License: LICENSE
Awesome Lists containing this project
README
=pod
=encoding UTF-8
=head1 NAME
IPC::Lockfile - run only one instance of a program at a time using flock
=head1 VERSION
version 0.04
=head1 SYNOPSIS
Just import the module:
#!/usr/bin/env perl
use IPC::Lockfile;
... # program code here
This will open a lock on the program file, avoiding the need for an external
lockfile. This elegant L for lockfiles was proposed by Mark Jason Dominus.
=head1 DESCRIPTION
C is a module for use with Perl programs when you only want one
instance of the script to run at a time. It uses C and should work if
run on an OS that supports C (e.g. Linux, BSD, OSX and Windows).
=head1 SEE ALSO
L for a PID-based solution that relies on signals and has a race
condition (not recommended).
=head1 AUTHOR
David Farrell
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by David Farrell.
This is free software, licensed under:
The (two-clause) FreeBSD License
=cut