test/ruby/test_process.rb: ensure exit! on fork failure
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking): ensure exit! on fork failure git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df25ba4015
commit
000e2b816d
@ -1,3 +1,8 @@
|
|||||||
|
Thu Oct 23 10:22:24 2014 Eric Wong <e@80x24.org>
|
||||||
|
|
||||||
|
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking):
|
||||||
|
ensure exit! during fork failure
|
||||||
|
|
||||||
Thu Oct 23 10:21:21 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
Thu Oct 23 10:21:21 2014 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* NEWS: Added String#unicode_normalize(|!|d?) [ci skip]
|
* NEWS: Added String#unicode_normalize(|!|d?) [ci skip]
|
||||||
|
@ -1922,6 +1922,7 @@ EOS
|
|||||||
er, ew = IO.pipe
|
er, ew = IO.pipe
|
||||||
unless runner = IO.popen("-")
|
unless runner = IO.popen("-")
|
||||||
er.close
|
er.close
|
||||||
|
status = true
|
||||||
begin
|
begin
|
||||||
$stderr.reopen($stdout)
|
$stderr.reopen($stdout)
|
||||||
trap(:QUIT) {}
|
trap(:QUIT) {}
|
||||||
@ -1934,10 +1935,13 @@ EOS
|
|||||||
$stdout.flush
|
$stdout.flush
|
||||||
end
|
end
|
||||||
ensure
|
ensure
|
||||||
ew.puts([Marshal.dump($!)].pack("m0")) if $!
|
if $!
|
||||||
|
ew.puts([Marshal.dump($!)].pack("m0"))
|
||||||
|
status = false
|
||||||
|
end
|
||||||
ew.close
|
ew.close
|
||||||
|
exit!(status)
|
||||||
end
|
end
|
||||||
exit!(true)
|
|
||||||
end
|
end
|
||||||
ew.close
|
ew.close
|
||||||
begin
|
begin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user