diff options
author | Matt Wrock <matt@mattwrock.com> | 2015-09-24 17:36:48 -0700 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2015-09-24 17:36:48 -0700 |
commit | 7a3f96d212ec745e4f9c4acb38f5cf3efbe44e93 (patch) | |
tree | 4e98d01a7ea45d84b6a1a44925a8dcf636c39547 | |
parent | 15af762bfdbac0c8dd345698b34ea4c2fe93dedc (diff) | |
download | mixlib-shellout-7a3f96d212ec745e4f9c4acb38f5cf3efbe44e93.tar.gz |
add logging for each child process killed
-rw-r--r-- | lib/mixlib/shellout/windows.rb | 1 |
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 |