Francois Gouget : testbot: Trace the pid of child processes being killed.
Alexandre Julliard
julliard at winehq.org
Wed Mar 21 14:38:52 CDT 2018
Module: tools
Branch: master
Commit: 4b51fcfdbb4d702bf572f3be54e5a6cde13576de
URL: https://source.winehq.org/git/tools.git/?a=commit;h=4b51fcfdbb4d702bf572f3be54e5a6cde13576de
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Mar 21 05:27:37 2018 +0100
testbot: Trace the pid of child processes being killed.
This helps analysing the Engine log.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/lib/WineTestBot/VMs.pm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/VMs.pm b/testbot/lib/WineTestBot/VMs.pm
index 7a35ba7..35bbe2a 100644
--- a/testbot/lib/WineTestBot/VMs.pm
+++ b/testbot/lib/WineTestBot/VMs.pm
@@ -292,7 +292,12 @@ It is up to the caller to save the updated VM object.
sub KillChild($)
{
my ($self) = @_;
- kill("TERM", $self->ChildPid) if ($self->ChildPid);
+ if ($self->ChildPid)
+ {
+ require WineTestBot::Log;
+ WineTestBot::Log::LogMsg("Killing child ". $self->ChildPid ."\n");
+ kill("TERM", $self->ChildPid);
+ }
$self->ChildPid(undef);
}
More information about the wine-cvs
mailing list