We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae89dc6 commit 0659865Copy full SHA for 0659865
parse.pl
@@ -58,7 +58,7 @@
58
59
@flags = ();
60
61
-$maxtimoeut = $ENV{'TIMEOUTWAIT'} // 2;
+$maxtimoeut = $ENV{'TIMEOUTWAIT'} // -1;
62
$minlen = $ENV{'MINQUEUECOUNT'};
63
$debug = $ENV{'DEBUG'};
64
$silent = $ENV{'SILENT'};
@@ -656,12 +656,15 @@ sub waitforid {
656
657
#CORE::print ("waitin on " . $ident . "\n");
658
659
- if(!cond_timedwait(@{$identstoidmap->{$ident}}, time() + $maxtimoeut)) {
+ if($maxtimoeut != -1 && !cond_timedwait(@{$identstoidmap->{$ident}}, time() + $maxtimoeut)) {
660
661
CORE::print("$currpos waitin timed out on : $ident, \n");
662
Dumper2(\@{$identstoidmap->{$ident}});
663
sleep(10000)
664
}
665
+ else {
666
+ cond_wait(@{$identstoidmap->{$ident}})
667
+ }
668
669
670
0 commit comments