aboutsummaryrefslogtreecommitdiffstats
path: root/mjit.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-30 00:51:57 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-30 00:51:57 +0000
commitce2a3b40ed06a25e9292dd7d02b311510d0ba8e2 (patch)
tree5150e7c0b581692d5651539ef8a74fef74a8c8bf /mjit.c
parent47f3c4d1477ebc479a5e0ab4342e1d86604caeb9 (diff)
downloadruby-ce2a3b40ed06a25e9292dd7d02b311510d0ba8e2.tar.gz
use SIGCHLD_LOSSY to enable waitpid polling mode
Some systems lack SIGCHLD or have incomplete SIGCHLD implementations. So enable polling mode for them. [ruby-core:87705] [Bug #14867] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit.c b/mjit.c
index e166a066bf..fb4b153cc3 100644
--- a/mjit.c
+++ b/mjit.c
@@ -408,7 +408,7 @@ exec_process(const char *path, char *const argv[])
{
int stat, exit_code = -2;
pid_t pid;
- rb_vm_t *vm = RUBY_SIGCHLD ? GET_VM() : 0;
+ rb_vm_t *vm = (RUBY_SIGCHLD || SIGCHLD_LOSSY) ? GET_VM() : 0;
rb_nativethread_cond_t cond;
if (vm) {