From 75ed54f1291dfaa01a097c78dc0b25454e83851f Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 14 Oct 2011 10:02:51 +0200 Subject: [PATCH] fix regex for active worker file Allow error messages with starting white space. --- data/PVE/INotify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2