aboutsummaryrefslogtreecommitdiffstats
path: root/ulri
diff options
context:
space:
mode:
authorGustavo De Nardin <spuk@mandriva.org>2009-08-05 18:55:28 +0000
committerGustavo De Nardin <spuk@mandriva.org>2009-08-05 18:55:28 +0000
commit8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af (patch)
tree0fa867d189b93daec453b8b17361cdf626abd550 /ulri
parent394cecd3d50953b991d80497fd1430656eede067 (diff)
downloadiurt-8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af.tar
iurt-8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af.tar.gz
iurt-8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af.tar.bz2
iurt-8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af.tar.xz
iurt-8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af.zip
Small change for preparing get_pid_from_file() to work on a complete Iurt output log.
Diffstat (limited to 'ulri')
-rwxr-xr-xulri2
1 files changed, 1 insertions, 1 deletions
diff --git a/ulri b/ulri
index e585013..bbf2124 100755
--- a/ulri
+++ b/ulri
@@ -748,7 +748,7 @@ sub get_pid_from_file {
my $pid;
open my $FILE, $file || die "FATAL: can't open $file";
local $_;
- while (<$FILE>) { ($pid) = /PID=(\d+)/ }
+ while (<$FILE>) { last if ($pid) = /^PID=(\d+)/ }
$pid;
}