Skip to content

Commit 0659865

Browse files
Bump
1 parent ae89dc6 commit 0659865

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

parse.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
@flags = ();
6060

61-
$maxtimoeut = $ENV{'TIMEOUTWAIT'} // 2;
61+
$maxtimoeut = $ENV{'TIMEOUTWAIT'} // -1;
6262
$minlen = $ENV{'MINQUEUECOUNT'};
6363
$debug = $ENV{'DEBUG'};
6464
$silent = $ENV{'SILENT'};
@@ -656,12 +656,15 @@ sub waitforid {
656656

657657
#CORE::print ("waitin on " . $ident . "\n");
658658

659-
if(!cond_timedwait(@{$identstoidmap->{$ident}}, time() + $maxtimoeut)) {
659+
if($maxtimoeut != -1 && !cond_timedwait(@{$identstoidmap->{$ident}}, time() + $maxtimoeut)) {
660660

661661
CORE::print("$currpos waitin timed out on : $ident, \n");
662662
Dumper2(\@{$identstoidmap->{$ident}});
663663
sleep(10000)
664664
}
665+
else {
666+
cond_wait(@{$identstoidmap->{$ident}})
667+
}
665668
}
666669
}
667670

0 commit comments

Comments
 (0)