mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
25aa3816b1
commit
6f36fedaa4
5 changed files with 153 additions and 7 deletions
9
signal.c
9
signal.c
|
@ -341,6 +341,14 @@ static RETSIGTYPE
|
|||
sighandle(sig)
|
||||
int sig;
|
||||
{
|
||||
#ifdef NT
|
||||
#define end_interrupt() win32_thread_resume_main()
|
||||
if (win32_main_context(sig, sighandle)) return;
|
||||
|
||||
#else
|
||||
#define end_interrupt() (void)0
|
||||
#endif
|
||||
|
||||
if (sig >= NSIG) {
|
||||
rb_bug("trap_handler: Bad signal %d", sig);
|
||||
}
|
||||
|
@ -358,6 +366,7 @@ sighandle(sig)
|
|||
rb_trap_pending++;
|
||||
trap_pending_list[sig]++;
|
||||
}
|
||||
end_interrupt();
|
||||
}
|
||||
|
||||
#ifdef SIGBUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue