* 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:
yugui 2008-11-23 07:07:34 +00:00
parent 7606241c6e
commit 0abd67ea19
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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
}