diff options
author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-21 09:33:34 +0000 |
---|---|---|
committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-21 09:33:34 +0000 |
commit | 7e70ac99dee1fc4d5988cc8f3e05480ab6d8fd8c (patch) | |
tree | c51d8eb3ca4cd7f4978b071979fde1cc5723e240 /intern.h | |
parent | cc1e41d9bf82090c9f22c6cebc07a19789d023b4 (diff) | |
download | ruby-7e70ac99dee1fc4d5988cc8f3e05480ab6d8fd8c.tar.gz |
* 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |