aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-26 11:58:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-26 12:00:19 +0900
commitfa6c1b06ad65e18bd187b643c045e700f7081c2d (patch)
tree21ac2bce9a0b9de3d6c1b5518089a5df6b0daad5 /process.c
parent4448d5864237de5d570f3d0ea80ddc53cf6f57fe (diff)
downloadruby-fa6c1b06ad65e18bd187b643c045e700f7081c2d.tar.gz
Suppress a "clobbered" warning
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/process.c b/process.c
index f1cd802f95..db3f38de1b 100644
--- a/process.c
+++ b/process.c
@@ -3537,9 +3537,7 @@ rb_exec_atfork(void* arg, char *errmsg, size_t errmsg_buflen)
{
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,
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) {