From 4ea96ece8400f1c6caa8a2429f6d93f15434238f Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 19 Mar 2013 04:40:22 +0000 Subject: * internal.h: added a declaration of ruby_kill(). * thread.c (ruby_kill): helper function of kill(). * signal.c (rb_f_kill): use ruby_kill() instead of kill(). * signal.c (rb_f_kill): call rb_thread_execute_interrupts() to ensure that make SignalException if sent a signal to myself. [Bug #7951] [ruby-core:52864] * vm_core.h (typedef struct rb_thread_struct): added th->interrupt_cond. * thread.c (rb_threadptr_interrupt_common): added to initialization of th->interrupt_cond. * thread.c (thread_create_core): ditto. * test/ruby/test_signal.rb (TestSignal#test_hup_me): test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index b099f24352..65ce5203ef 100644 --- a/internal.h +++ b/internal.h @@ -308,6 +308,7 @@ VALUE rb_thread_shield_destroy(VALUE self); void rb_mutex_allow_trap(VALUE self, int val); VALUE rb_uninterruptible(VALUE (*b_proc)(ANYARGS), VALUE data); VALUE rb_mutex_owned_p(VALUE self); +void ruby_kill(pid_t pid, int sig); /* thread_pthread.c, thread_win32.c */ void Init_native_thread(void); -- cgit v1.2.3