From a716a2474b71d4290763986cfd5f1cde0ccb5080 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 20 May 2016 14:24:39 +0000 Subject: thread_pthread.c: no fork, no gvl_atfork * thread_pthread.c (gvl_atfork): used in rb_thread_atfork_internal only if HAVE_WORKING_FORK is defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thread_pthread.c b/thread_pthread.c index 0f62c6d603..b8be9bddc5 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -181,12 +181,14 @@ gvl_destroy(rb_vm_t *vm) native_mutex_destroy(&vm->gvl.lock); } +#if defined(HAVE_WORKING_FORK) static void gvl_atfork(rb_vm_t *vm) { gvl_init(vm); gvl_acquire(vm, GET_THREAD()); } +#endif #define NATIVE_MUTEX_LOCK_DEBUG 0 -- cgit v1.2.3