From ce2a3b40ed06a25e9292dd7d02b311510d0ba8e2 Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 30 Jun 2018 00:51:57 +0000 Subject: 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 --- signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signal.c') diff --git a/signal.c b/signal.c index a817cb336a..7b725d8268 100644 --- a/signal.c +++ b/signal.c @@ -1066,7 +1066,7 @@ void ruby_waitpid_all(rb_vm_t *); /* process.c */ void ruby_sigchld_handler(rb_vm_t *vm) { - if (ATOMIC_EXCHANGE(sigchld_hit, 0)) { + if (SIGCHLD_LOSSY || ATOMIC_EXCHANGE(sigchld_hit, 0)) { ruby_waitpid_all(vm); } } -- cgit v1.2.3