summaryrefslogtreecommitdiff
path: root/intern.h
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-21 09:33:34 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-21 09:33:34 +0000
commit7e70ac99dee1fc4d5988cc8f3e05480ab6d8fd8c (patch)
treec51d8eb3ca4cd7f4978b071979fde1cc5723e240 /intern.h
parentcc1e41d9bf82090c9f22c6cebc07a19789d023b4 (diff)
* signal.c: Standard signal handlers ignore signals on non-Ruby native
threads. When a handler is entried with ruby_signal() (like as the standard signal handlers), the handler for the signal is marked as it cannot accept non-Ruby native threads. If a handler can treat all signals on all native threads, please use ruby_nativethread_signal() to entry it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'intern.h')
-rw-r--r--intern.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern.h b/intern.h
index 841ade4315..1da256973c 100644
--- a/intern.h
+++ b/intern.h
@@ -400,6 +400,10 @@ void rb_gc_mark_trap_list _((void));
#ifdef POSIX_SIGNAL
#define posix_signal ruby_posix_signal
void posix_signal _((int, RETSIGTYPE (*)(int)));
+#ifdef HAVE_NATIVETHREAD
+#define posix_nativethread_signal ruby_posix_nativethread_signal
+void posix_nativethread_signal _((int, RETSIGTYPE (*)(int)));
+#endif
#endif
void rb_trap_exit _((void));
void rb_trap_exec _((void));