If I run the following:
Process.kill "KILL", pid
Process.wait pid
raise "application did not exit" if not $?.exited?
raise "application failed" if not $?.success?
I get the error "application did not exit". Why is Process.wait
not waiting? More precisely, why does Process.wait
set $?
to a not-exited status?