Jump to content

Determine if only one instance is running: Difference between revisions

m
→‎{{header|Perl 6}}: order of arguments has changed
m (→‎{{header|Perl 6}}: order of arguments has changed)
Line 751:
sleep 60; # then your code goes here</lang>
=={{header|Perl 6}}==
{{works with|rakudo|2015-09-092018.03}}
An old-school Unix solution, none the worse for the wear:
<lang perl6>my $name = $*PROGRAM-NAME;
Line 770:
$pidfile.close;
 
if try link($lockfilelockpid, $lockpidlockfile) {
$havelock = True;
}
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.