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 | 2d62d7933a0ae57816c68aa9252413b432c2abb9 (patch) | |
tree | c51d8eb3ca4cd7f4978b071979fde1cc5723e240 /intern.h | |
parent | bf2a22e2bd527d7dc749034d9a146e95e464be1d (diff) | |
download | ruby-2d62d7933a0ae57816c68aa9252413b432c2abb9.tar.gz ruby-2d62d7933a0ae57816c68aa9252413b432c2abb9.tar.xz ruby-2d62d7933a0ae57816c68aa9252413b432c2abb9.zip |
* 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: http://svn.ruby-lang.org/repos/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)); |