module Mixlib::ShellOut::Windows
def kill_process(instance, logger)
def kill_process(instance, logger) child_pid = instance.wmi_ole_object.processid if logger logger.debug([ "killing child process #{child_pid}::", "#{instance.wmi_ole_object.Name} of parent #{pid}", ].join) end Process.kill(:KILL, instance.wmi_ole_object.processid) rescue Errno::EIO, SystemCallError if logger logger.debug([ "Failed to kill child process #{child_pid}::", "#{instance.wmi_ole_object.Name} of parent #{pid}", ].join) end end