aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 02:45:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-10 02:45:38 +0000
commit258716bd9d5398b7e6a6375ef5dd4f23790c6af5 (patch)
tree29f564d8adc7a1ef6a57d27492a25d357476e9c5 /test
parent3ffd8a918ff2cfd555bf7e89329b275d1fe8ab12 (diff)
downloadruby-258716bd9d5398b7e6a6375ef5dd4f23790c6af5.tar.gz
* 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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb9
1 files changed, 9 insertions, 0 deletions
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