diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-15 00:32:23 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-01-15 00:32:23 +0000 |
commit | e32ce1868f62070663a13813b132a2bb0cf5f147 (patch) | |
tree | 1226a510d3fba18ea2221bde67a54056017c89cb | |
parent | 17bc951fc53e51469f39ff78fd40cad50daea278 (diff) |
* thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when
fork()ing. Patch by Apollon Oikonomopoulos. Thanks!
[Bug #7693][ruby-core:51424]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | thread_pthread.c | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Jan 15 09:22:47 2013 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when + fork()ing. Patch by Apollon Oikonomopoulos. Thanks! + [Bug #7693][ruby-core:51424] + Tue Jan 15 09:27:56 2013 Eric Hodel <drbrain@segment7.net> * doc/syntax/calling_methods.rdoc (Receiver): Added :: as pointed out diff --git a/thread_pthread.c b/thread_pthread.c index d35092a70a..6c48224a87 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -155,6 +155,7 @@ gvl_init(rb_vm_t *vm) vm->gvl.acquired = 0; vm->gvl.waiting = 0; vm->gvl.need_yield = 0; + vm->gvl.wait_yield = 0; } static void |