ruby-changes:51579
From: normal <ko1@a...>
Date: Fri, 29 Jun 2018 21:42:52 +0900 (JST)
Subject: [ruby-changes:51579] normal:r63790 (trunk): process.c: handle errno correctly in non-SIGCHLD path
normal 2018-06-29 17:51:33 +0900 (Fri, 29 Jun 2018) New Revision: 63790 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63790 Log: process.c: handle errno correctly in non-SIGCHLD path It's a bit redundant, but we optimize for platforms with SIGCHLD, not without. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 63789) +++ process.c (revision 63790) @@ -1114,6 +1114,8 @@ waitpid_no_SIGCHLD(struct waitpid_state https://github.com/ruby/ruby/blob/trunk/process.c#L1114 RUBY_UBF_PROCESS, 0); } while (w->ret < 0 && errno == EINTR && (RUBY_VM_CHECK_INTS(w->ec),1)); } + if (w->ret == -1) + w->errnum = errno; } rb_pid_t -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/