[ruby-cvs:71681] normal:r64589 (trunk): cont.c: set th->root_fiber to current fiber at fork

normal at ruby-lang.org normal at ruby-lang.org
Wed Aug 29 17:04:09 JST 2018


normal	2018-08-29 17:04:09 +0900 (Wed, 29 Aug 2018)

  New Revision: 64589

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

  Log:
    cont.c: set th->root_fiber to current fiber at fork
    
    Otherwise, th->root_fiber can point to an invalid Fiber,
    because Fibers do not live across fork.  So consider
    whatever Fiber is running the root fiber.
    
    [ruby-core:88723] [Bug #15041]

  Modified files:
    trunk/cont.c
    trunk/test/ruby/test_fiber.rb
    trunk/thread.c


More information about the ruby-cvs mailing list