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 | 2e25df66cedd76609685fd0c6ff25d3ad42f2e3a (patch) | |
| tree | 27ec5243511847068a9cf5eb077c1368f95606a4 /bootstraptest | |
| parent | 029179a9f343ff36fc1e37cb9bdfa5db0e9c2408 (diff) | |
| download | ruby-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.rb | 6 |
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' +} |
