[PATCH] testbot: Trace the pid of child processes being killed.

Francois Gouget fgouget at codeweavers.com
Tue Mar 20 23:27:37 CDT 2018


This helps analysing the Engine log.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 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 7a35ba742..35bbe2a59 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);
 }
 
-- 
2.16.2




More information about the wine-devel mailing list