summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-10 06:49:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-10 06:49:15 +0000
commit2e25df66cedd76609685fd0c6ff25d3ad42f2e3a (patch)
tree27ec5243511847068a9cf5eb077c1368f95606a4 /bootstraptest
parent029179a9f343ff36fc1e37cb9bdfa5db0e9c2408 (diff)
downloadruby-2e25df66cedd76609685fd0c6ff25d3ad42f2e3a.tar.gz
ruby-2e25df66cedd76609685fd0c6ff25d3ad42f2e3a.tar.xz
ruby-2e25df66cedd76609685fd0c6ff25d3ad42f2e3a.zip
* thread_pthread.c (native_mutex_reinitialize_atfork): release and
re-acquire the lock at re-initialization. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_thread.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index 446c9ff4d..5fdb66bb6 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -434,4 +434,8 @@ assert_finish 3, %q{
Process.waitpid(pid)
rescue NotImplementedError
end
-}, '[ruby-core:26361]'
+}, '[ruby-core:23572]'
+
+assert_equal 'ok', %q{
+ Process.waitpid2(fork {sleep 1})[1].success? ? 'ok' : 'ng'
+}