aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-25 06:23:35 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-25 06:23:35 +0000
commit0e549fa3dd7930ebf8cb26746da819dfcb591d86 (patch)
tree4f5a7b40351b09556c5dfb3a50675369269d94e1 /ulri
parentf330b62eaad55827697f10b2ed1d389a8ac0b756 (diff)
downloadiurt-0e549fa3dd7930ebf8cb26746da819dfcb591d86.tar
iurt-0e549fa3dd7930ebf8cb26746da819dfcb591d86.tar.gz
iurt-0e549fa3dd7930ebf8cb26746da819dfcb591d86.tar.bz2
iurt-0e549fa3dd7930ebf8cb26746da819dfcb591d86.tar.xz
iurt-0e549fa3dd7930ebf8cb26746da819dfcb591d86.zip
std subify
Diffstat (limited to 'ulri')
-rwxr-xr-xulri5
1 files changed, 2 insertions, 3 deletions
diff --git a/ulri b/ulri
index 7b83389..975092a 100755
--- a/ulri
+++ b/ulri
@@ -758,7 +758,7 @@ exit();
#
sub get_pid_from_file {
- my $file = shift;
+ my ($file) = @_;
my $pid;
open my $FILE, $file || die "FATAL: can't open $file";
@@ -786,8 +786,7 @@ sub read_line {
}
sub check_file_timeout {
- my $file = shift;
- my $time = shift;
+ my ($file, $time) = @_;
my $i = 0;
while ($i < $time && (!-f $file || -z $file)) { sleep 1; $i++ }