mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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
This commit is contained in:
parent
47f3c4d147
commit
ce2a3b40ed
5 changed files with 20 additions and 3 deletions
2
mjit.c
2
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue