зеркало из https://github.com/github/ruby.git
* process.c (handle_fork_error): Make try_gc_p argument volatile to
suppress "clobbered" warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
5e42cc3085
Коммит
01689aa9b1
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 5 21:02:54 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (handle_fork_error): Make try_gc_p argument volatile to
|
||||
suppress "clobbered" warning.
|
||||
|
||||
Fri Sep 5 20:48:06 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (handle_fork_error): Don't need state_p argument.
|
||||
|
|
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче