assert_normal_exit.patch

Lucas Nussbaum, 08/28/2011 02:13 AM

Download (684 Bytes)

View differences:

ruby1.9.1-1.9.3~preview1+svn33077/bootstraptest/runner.rb 2011-08-27 18:07:45.000000000 +0100
245 245
      th = Thread.new {
246 246
        io.read
247 247
        io.close
248
        $?
249 248
      }
250 249
      if !th.join(timeout)
251 250
        Process.kill :KILL, pid
252 251
        timeout_signaled = true
253 252
      end
254
      status = th.value
253
      Process.waitpid(pid)
254
      status = $?
255 255
    ensure
256 256
      $stderr.reopen(old_stderr)
257 257
      old_stderr.close