mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
* 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
This commit is contained in:
parent
cc1e41d9bf
commit
7e70ac99de
3 changed files with 97 additions and 4 deletions
4
intern.h
4
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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue