[Tools] testbot/TestAgent: Fix SIGALRM handling in _SetError().
Francois Gouget
fgouget at codeweavers.com
Wed Nov 30 02:01:03 CST 2016
SIGALRM must always be caught otherwise the script dies.
Francois Gouget <fgouget at codeweavers.com>
---
testbot/lib/WineTestBot/TestAgent.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index da10672..b0e59d1 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -214,6 +214,7 @@ sub _SetError($$$)
my $ncerr;
eval
{
+ local $SIG{ALRM} = sub { die "timeout" };
alarm(2);
$self->{fd}->read($ncerr, 1024, 1);
alarm(0);
--
2.10.2
More information about the wine-patches
mailing list