diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-06 07:44:28 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-06 07:44:28 +0000 |
commit | 5dfdaa92994096ac7c6713ebd77413271ff4bc41 (patch) | |
tree | e8d9634d0184a97f1d342a65b20207b03d272b20 /process.c | |
parent | 5845bd6a718573da5f0f7e53368d2a1dda52f420 (diff) | |
download | ruby-5dfdaa92994096ac7c6713ebd77413271ff4bc41.tar.gz |
move rb_thread_t::interrupt_flag and mask
to rb_execution_context_t.
* vm_core.h (rb_thread_t): move
`rb_thread_t::interrupt_flag` and
`rb_thread_t::interrupt_mask` to rb_execution_context_t.
RUBY_VM_CHECK_INTS() accepts `ec` instead of `th`.
* cont.c (rb_fiber_terminate): to propagate interrupt information,
add new parameter `need_interrupt`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -902,8 +902,7 @@ rb_waitpid(rb_pid_t pid, int *st, int flags) else { while ((result = do_waitpid_nonblocking(pid, st, flags)) < 0 && (errno == EINTR)) { - rb_thread_t *th = GET_THREAD(); - RUBY_VM_CHECK_INTS(th); + RUBY_VM_CHECK_INTS(GET_EC()); } } if (result > 0) { |