R
Ralph Shnelvar
[Note: parts of this message were removed to make it a legal post.]
What is the proper way, under Windows, to detect that a process was killed? Crashed?
Signal.list.each_key do |key|
puts key
Signal.trap(key, lambda {|signo| puts "#{key}: pid #{$$} with signo #{signo}"})
end
@the_command_pipe = IO.popen(the_command)
@the_command_pid = @the_command_pipe.pid
Process.waitpid(@the_command_pid)
@child_process_return_status = $?
What is the proper way, under Windows, to detect that a process was killed? Crashed?
Signal.list.each_key do |key|
puts key
Signal.trap(key, lambda {|signo| puts "#{key}: pid #{$$} with signo #{signo}"})
end
@the_command_pipe = IO.popen(the_command)
@the_command_pid = @the_command_pipe.pid
Process.waitpid(@the_command_pid)
@child_process_return_status = $?