diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2009-08-05 18:55:28 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2009-08-05 18:55:28 +0000 |
commit | 8c4dba1ba2cd5df6d9e1dc5b2a3a8cc06bc640af (patch) | |
tree | 0fa867d189b93daec453b8b17361cdf626abd550 /ulri | |
parent | 394cecd3d50953b991d80497fd1430656eede067 (diff) | |
download | iurt-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-x | ulri | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |