App-Slaughter
view release on metacpan or search on metacpan
bin/slaughter view on Meta::CPAN
798799800801802803804805806807808809810811812813814815816817818
#
# Open the lock-file exclusively.
#
open
( LOCK,
">>"
,
$lockfile
) or
die
"Failed to open lockfile at $lockfile - $!"
;
#
# Lock the file.
#
flock
( LOCK, LOCK_EX | LOCK_NB ) or
die
"$0 already running - Lock file $lockfile is locked"
;
#
# The file will be closed when slaughter terminates so although it
# looks like we're leaking a handle here this is intentional.
#
}
=begin doc
( run in 0.651 second using v1.01-cache-2.11-cpan-26ccb49234f )