From 2e25df66cedd76609685fd0c6ff25d3ad42f2e3a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 10 Dec 2009 06:49:15 +0000 Subject: * 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 --- bootstraptest/test_thread.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bootstraptest') 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' +} -- cgit