mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* signal.c (default_handler, Init_signal): compile error if
USE_SIGALTSTACK is not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7606241c6e
commit
0abd67ea19
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Nov 23 16:04:05 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* signal.c (default_handler, Init_signal): compile error if
|
||||
USE_SIGALTSTACK is not defined.
|
||||
|
||||
Sun Nov 23 00:04:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
|
||||
|
|
4
signal.c
4
signal.c
|
@ -699,7 +699,9 @@ default_handler(int sig)
|
|||
#ifdef SIGSEGV
|
||||
case SIGSEGV:
|
||||
func = sigsegv;
|
||||
#ifdef USE_SIGALTSTACK
|
||||
register_sigaltstack();
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
#ifdef SIGPIPE
|
||||
|
@ -1107,7 +1109,9 @@ Init_signal(void)
|
|||
install_sighandler(SIGBUS, sigbus);
|
||||
#endif
|
||||
#ifdef SIGSEGV
|
||||
#ifdef USE_SIGALTSTACK
|
||||
register_sigaltstack();
|
||||
#endif
|
||||
install_sighandler(SIGSEGV, sigsegv);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue