Bug #5239 ยป assert_normal_exit.patch
ruby1.9.1-1.9.3~preview1+svn33077/bootstraptest/runner.rb 2011-08-27 18:07:45.000000000 +0100 | ||
---|---|---|
th = Thread.new {
|
||
io.read
|
||
io.close
|
||
$?
|
||
}
|
||
if !th.join(timeout)
|
||
Process.kill :KILL, pid
|
||
timeout_signaled = true
|
||
end
|
||
status = th.value
|
||
Process.waitpid(pid)
|
||
status = $?
|
||
ensure
|
||
$stderr.reopen(old_stderr)
|
||
old_stderr.close
|