[ruby-cvs:73539] normal:r66438 (trunk): thread_sync.c (mutex_ptr): only reinitalize waitqueue at fork

normal at ruby-lang.org normal at ruby-lang.org
Tue Dec 18 18:21:05 JST 2018


normal	2018-12-18 18:21:05 +0900 (Tue, 18 Dec 2018)

  New Revision: 66438

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66438

  Log:
    thread_sync.c (mutex_ptr): only reinitalize waitqueue at fork
    
    Mutexes need to remain locked after forking.
    
    This fixes "[BUG] invalid keeping_mutexes: Attempt to unlock a
    mutex which is locked by another thread" and should
    fix test_fork_while_parent_locked failures in CI
    
    [ruby-core:90581] [Bug #15424]
    [ruby-core:90595] [Bug #15430]
    
    Fixes: r66230 ("handle mutexes held by parent threads in children")

  Modified files:
    trunk/test/ruby/test_thread.rb
    trunk/thread_sync.c


More information about the ruby-cvs mailing list