|
NAMEPid::File::Flock - PID file operationsVERSIONVersion 0.08SYNOPSISYou can use module generic way:use Pid::File::Flock; ... Pid::File::Flock->new; Pid::File::Flock->new('file'); Pid::File::Flock->new(debug=>1, dir=>'/tmp'); or in simplified form: use Pid::File::Flock qw(:auto); use Pid::File::Flock qw(:auto :raise); use Pid::File::Flock qw(:auto path=file); use Pid::File::Flock qw(:auto :debug dir=/tmp); you can mix both too: use Pid::File::Flock qw(:debug dir=/tmp); ... Pid::File::Flock->new(ext=>'.old'); IMPORT LISTYou can provide 'flag' options ('debug','quiet') like an import tag: "use Pid::File::Flock qw(:debug :quiet)"Valued options can be specified with key=value form: "use Pid::File::Flock qw(dir=/tmp ext=.old)" Pseudo tag ':auto' create lock object implicitly. GENERIC USAGEnew( $path, %options )Generic constructor
Supported options:
abandonDon't try to remove pid file during destruction. Become for using in forking applications.INTERNAL ROUTINESYou haven't call these methods directly.importProcess 'fake' import list.acquireAcquiring lock, called by "new" constructor.attemptAttempting acquire lock with additional checks.releaseUnlink pid file, handle will be closed a bit later, during object destructing.DESTROYLock object destructor.ENDUndefine module lexical variable to force DESTROY invoking.AUTHOROleg A. Mamontov, "<oleg at mamontov.net>"LIMITATIONSModule works with advisory files locking which is not implemented on win32 platform.BUGSPlease report any bugs or feature requests to "bug-pid-file-flock at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Pid-File-Flock>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Pid::File::Flock You can also look for information at:
COPYRIGHT & LICENSECopyright 2009 Oleg A. Mamontov, all rights reserved.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Visit the GSP FreeBSD Man Page Interface. |