diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 07:51:07 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-16 07:51:07 +0000 |
| commit | ce897307b0837ec5c1fc75fdc8ccf1f168741dbe (patch) | |
| tree | 24108b89ccce9e2fc664c6f9325bd4c3a6cbcd7c /test/ruby | |
| parent | 7239e8e06e69972aed1d7991f684a214c2bb896d (diff) | |
* eval.c (rb_thread_start_timer): start to catch SIGVTALRM together
with timer thread. [ruby-core:25606]
* eval.c (rb_thread_atfork): stop timer thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_signal.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_signal.rb b/test/ruby/test_signal.rb index 43e16b8c79..84db7fa1f3 100644 --- a/test/ruby/test_signal.rb +++ b/test/ruby/test_signal.rb @@ -65,4 +65,11 @@ class TestSignal < Test::Unit::TestCase w0.close end end + + def test_child_vtalrm + return unless have_fork? # snip this test + pid = fork {100_000.times{ 1+1 }} + pid, status = Process.wait2(pid) + assert_equal(false, status.signaled?, '[ruby-core:25606]') + end end |
