[ruby-core:88723] [Ruby trunk Bug#15041] [PATCH] cont.c: set th->root_fiber to current fiber at fork

From: ko1@...
Date: 2018-08-29 07:20:59 UTC
List: ruby-core #88723
Issue #15041 has been updated by ko1 (Koichi Sasada).


(I'm not sure why fork removes other fibers, but)
I think it is okay. let's try.


----------------------------------------
Bug #15041: [PATCH] cont.c: set th->root_fiber to current fiber at fork
https://bugs.ruby-lang.org/issues/15041#change-73777

* Author: normalperson (Eric Wong)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 
* Backport: 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED
----------------------------------------
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.


---Files--------------------------------
0001-cont.c-set-th-root_fiber-to-current-fiber-at-fork.patch (2.13 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next