1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2009-12-10 06:49:15 +00:00
parent 9689308994
commit 4ba0fe5fd3
3 changed files with 14 additions and 2 deletions

View file

@ -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'
}