Francois Gouget : testbot/TestAgent: Don' t wait for the ssh process if there is none.
Alexandre Julliard
julliard at winehq.org
Mon Sep 9 14:02:45 CDT 2019
Module: tools
Branch: master
Commit: 45f09b1fdeb3b905bc877f394f529c059421f06c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=45f09b1fdeb3b905bc877f394f529c059421f06c
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Sun Sep 8 06:05:16 2019 +0200
testbot/TestAgent: Don't wait for the ssh process if there is none.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/lib/WineTestBot/TestAgent.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index a0a5efe..9d33f0a 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -129,7 +129,7 @@ sub Disconnect($)
# This may close the SSH channel ($self->{fd}) as a side-effect,
# which will avoid undue delays.
$self->{ssh} = undef;
- waitpid($self->{sshpid}, 0);
+ waitpid($self->{sshpid}, 0) if ($self->{sshpid});
$self->{sshpid} = undef;
}
if ($self->{fd})
More information about the wine-cvs
mailing list