[前][次][番号順一覧][スレッド一覧]

ruby-changes:57254

From: Nobuyoshi <ko1@a...>
Date: Mon, 26 Aug 2019 12:00:36 +0900 (JST)
Subject: [ruby-changes:57254] Nobuyoshi Nakada: fa6c1b06ad (master): Suppress a "clobbered" warning

https://git.ruby-lang.org/ruby.git/commit/?id=fa6c1b06ad

From fa6c1b06ad65e18bd187b643c045e700f7081c2d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 26 Aug 2019 11:58:55 +0900
Subject: Suppress a "clobbered" warning


diff --git a/process.c b/process.c
index f1cd802..db3f38d 100644
--- a/process.c
+++ b/process.c
@@ -3537,9 +3537,7 @@ rb_exec_atfork(void* arg, char *errmsg, size_t errmsg_buflen) https://github.com/ruby/ruby/blob/trunk/process.c#L3537
 {
     return rb_exec_async_signal_safe(arg, errmsg, errmsg_buflen); /* hopefully async-signal-safe */
 }
-#endif
 
-#ifdef HAVE_WORKING_FORK
 #if SIZEOF_INT == SIZEOF_LONG
 #define proc_syswait (VALUE (*)(VALUE))rb_syswait
 #else
@@ -3928,7 +3926,7 @@ retry_fork_async_signal_safe(int *status, int *ep, https://github.com/ruby/ruby/blob/trunk/process.c#L3926
     volatile int try_gc = 1;
     struct child_handler_disabler_state old;
     int err;
-    rb_nativethread_lock_t *const waitpid_lock_init =
+    rb_nativethread_lock_t *const volatile waitpid_lock_init =
         (w && WAITPID_USE_SIGCHLD) ? &GET_VM()->waitpid_lock : 0;
 
     while (1) {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]