aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-18 09:25:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-18 09:25:46 +0000
commita000201fee156c783a85c5daa92bce0a721fb522 (patch)
tree228c4efee9f2b155bd9533b39b4136eb133c350d /thread_win32.c
parent748fe216c26cd7d7d7f4125339c26bf93aff690e (diff)
downloadruby-a000201fee156c783a85c5daa92bce0a721fb522.tar.gz
* thread.c (rb_thread_atfork_internal): reinitialize global lock
at fork to get rid of deadlock. based on the patch from Hongli Lai in [ruby-core:26783]. [ruby-core:26361] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_win32.c b/thread_win32.c
index dc07a38a14..6bb29a1a40 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -326,6 +326,8 @@ native_mutex_initialize(rb_thread_lock_t *lock)
#endif
}
+#define native_mutex_reinitialize_atfork(lock) (void)(lock)
+
static void
native_mutex_destroy(rb_thread_lock_t *lock)
{