summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2015-09-24 17:36:48 -0700
committerMatt Wrock <matt@mattwrock.com>2015-09-24 17:36:48 -0700
commit7a3f96d212ec745e4f9c4acb38f5cf3efbe44e93 (patch)
tree4e98d01a7ea45d84b6a1a44925a8dcf636c39547
parent15af762bfdbac0c8dd345698b34ea4c2fe93dedc (diff)
downloadmixlib-shellout-7a3f96d212ec745e4f9c4acb38f5cf3efbe44e93.tar.gz
add logging for each child process killed
-rw-r--r--lib/mixlib/shellout/windows.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mixlib/shellout/windows.rb b/lib/mixlib/shellout/windows.rb
index 3661640..627e5e4 100644
--- a/lib/mixlib/shellout/windows.rb
+++ b/lib/mixlib/shellout/windows.rb
@@ -322,6 +322,7 @@ module Mixlib
child_pid = instance.wmi_ole_object.processid
kill_process_tree(child_pid, wmi)
begin
+ logger.warn("killing child process #{child_pid}::#{instance.wmi_ole_object.Name} of parent #{pid}") if logger
Process.kill(:kill, child_pid)
rescue Errno::EIO
logger.warn("Failed to kill child process #{child_pid}::#{instance.wmi_ole_object.Name} of parent #{pid}") if logger