diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-10 06:49:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-10 06:49:15 +0000 |
commit | 4ba0fe5fd3d12f9918cc84302239bf0e978844a2 (patch) | |
tree | 27ec5243511847068a9cf5eb077c1368f95606a4 /bootstraptest | |
parent | 9689308994d3d5537dfc8b798a76c757c283d6ad (diff) | |
download | ruby-4ba0fe5fd3d12f9918cc84302239bf0e978844a2.tar.gz |
* thread_pthread.c (native_mutex_reinitialize_atfork): release and
re-acquire the lock at re-initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_thread.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb index 446c9ff4d2..5fdb66bb68 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' +} |