From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 18A4B1F85E for ; Tue, 26 Jun 2018 09:38:20 +0000 (UTC) From: Eric Wong To: spew@80x24.org Subject: [PATCH 12/14] reinitialize waitpid_lock Date: Tue, 26 Jun 2018 09:38:15 +0000 Message-Id: <20180626093817.1533-13-e@80x24.org> In-Reply-To: <20180626093817.1533-1-e@80x24.org> References: <20180626093817.1533-1-e@80x24.org> List-Id: --- thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thread.c b/thread.c index 66961efbf0..c58d3e0b9d 100644 --- a/thread.c +++ b/thread.c @@ -4255,6 +4255,9 @@ rb_thread_atfork_internal(rb_thread_t *th, void (*atfork)(rb_thread_t *, const r } rb_vm_living_threads_init(vm); rb_vm_living_threads_insert(vm, th); + + /* may be held by MJIT threads in parent */ + rb_native_mutex_initialize(&vm->waitpid_lock); vm->fork_gen++; vm->sleeper = 0; -- EW