Francois Gouget : testbot/TestAgent: Fix SIGALRM handling in _SetError().

Alexandre Julliard julliard at winehq.org
Wed Nov 30 09:51:16 CST 2016


Module: tools
Branch: master
Commit: 908ce0ec07f18791d7568d062a6394baeea0368b
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=908ce0ec07f18791d7568d062a6394baeea0368b

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Nov 30 09:01:03 2016 +0100

testbot/TestAgent: Fix SIGALRM handling in _SetError().

SIGALRM must always be caught otherwise the script dies.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);




More information about the wine-cvs mailing list