From: Dietmar Maurer Date: Fri, 14 Oct 2011 08:02:51 +0000 (+0200) Subject: fix regex for active worker file X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=75ed54f1291dfaa01a097c78dc0b25454e83851f fix regex for active worker file Allow error messages with starting white space. --- diff --git a/data/PVE/INotify.pm b/data/PVE/INotify.pm index 0ee8997..abc8aeb 100644 --- a/data/PVE/INotify.pm +++ b/data/PVE/INotify.pm @@ -616,7 +616,7 @@ sub read_active_workers { my $res = []; while (defined (my $line = <$fh>)) { - if ($line =~ m/^(\S+)\s(0|1)(\s([0-9A-Za-z]{8})(\s(\S.*))?)?$/) { + if ($line =~ m/^(\S+)\s(0|1)(\s([0-9A-Za-z]{8})(\s(\s*\S.*))?)?$/) { my $upid = $1; my $saved = $2; my $endtime = $4;