From 258716bd9d5398b7e6a6375ef5dd4f23790c6af5 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 10 Jun 2012 02:45:38 +0000 Subject: * process.c (rb_fork_internal): call after_fork only unless chfunc_is_async_signal_safe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_process.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 4ff4023b51..b3ecc420ed 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1424,4 +1424,13 @@ class TestProcess < Test::Unit::TestCase assert_nothing_raised { spawn(*TRUECOMMAND, :new_pgroup=>true) } assert_nothing_raised { IO.popen([*TRUECOMMAND, :new_pgroup=>true]) {} } end + + def test_sigpipe + system(RUBY, "-e", "") + with_pipe {|r, w| + r.close + assert_raise(Errno::EPIPE) { w.print "a" } + } + end + end -- cgit v1.2.3