From 6c3f1461cd8052486f8e124f8f899447f653505b Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 12 Jun 2017 04:52:25 +0000 Subject: remove ruby_kill() introduced for [Bug #7951]. * thread.c (rbuy_kill): removed. This function is used with SIGSEGV, SIGBUS, SIGKILL, SIGILL, SIGFPE and SIGSTOP and these signals are affect immediately. So that `kill(2)' is enough for them. * signal.c (rb_f_kill): ditto. * vm_core.h (rb_thread_t::interrupt_cond): removed because only `ruby_kill()' uses this field. * test/ruby/test_signal.rb: Without this patch sending SIGSTOP to own process wait another interrupt even if another process sends SIGCONT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 1 - 1 file changed, 1 deletion(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 52d1bbcdce..f4301b7fe0 100644 --- a/vm_core.h +++ b/vm_core.h @@ -791,7 +791,6 @@ typedef struct rb_thread_struct { rb_atomic_t interrupt_flag; unsigned long interrupt_mask; rb_nativethread_lock_t interrupt_lock; - rb_nativethread_cond_t interrupt_cond; struct rb_unblock_callback unblock; VALUE locking_mutex; struct rb_mutex_struct *keeping_mutexes; -- cgit v1.2.3