summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 165e769080..5dd505b559 100644
--- a/process.c
+++ b/process.c
@@ -3159,7 +3159,7 @@ pipe_nocrash(int filedes[2], VALUE fds)
#endif
static int
-handle_fork_error(int *status, int *ep, int *try_gc_p)
+handle_fork_error(int *status, int *ep, volatile int *try_gc_p)
{
int state = 0;
@@ -3390,7 +3390,7 @@ retry_fork_async_signal_safe(int *status, int *ep,
char *errmsg, size_t errmsg_buflen)
{
rb_pid_t pid;
- int try_gc = 1;
+ volatile int try_gc = 1;
while (1) {
prefork();