summaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 21:50:01 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-01 21:50:01 +0000
commitb4df610c2733fb8b8a1f431940b4e5d1a58e2d47 (patch)
tree75ef654a0efc94268b2cab1f3b75770a966bc392 /signal.c
parent0aca84d0884e41217a1d9e2a5532befd2d61a442 (diff)
downloadruby-b4df610c2733fb8b8a1f431940b4e5d1a58e2d47.tar.gz
ruby-b4df610c2733fb8b8a1f431940b4e5d1a58e2d47.tar.xz
ruby-b4df610c2733fb8b8a1f431940b4e5d1a58e2d47.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@21265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 91aa7c418..8d75c3bc5 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;