From d4b3e8ae70590a92ec5051edbaf9382923301497 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 1 Jan 2009 21:50:01 +0000 Subject: * signal.c (rb_signal_buff_size): defined for check whether signal is in the buffer or not. * thread_pthread.c (thread_timer): don't exit the loop when signal is in the buffer. [ruby-dev:37637] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- signal.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'signal.c') diff --git a/signal.c b/signal.c index 91aa7c418e..8d75c3bc5c 100644 --- a/signal.c +++ b/signal.c @@ -514,6 +514,12 @@ sighandler(int sig) #endif } +int +rb_signal_buff_size() +{ + return signal_buff.size; +} + #if USE_TRAP_MASK # ifdef HAVE_SIGPROCMASK static sigset_t trap_last_mask; -- cgit v1.2.3