1
0
Fork 0
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:
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> 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. * 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 #ifdef SIGSEGV
case SIGSEGV: case SIGSEGV:
func = sigsegv; func = sigsegv;
#ifdef USE_SIGALTSTACK
register_sigaltstack(); register_sigaltstack();
#endif
break; break;
#endif #endif
#ifdef SIGPIPE #ifdef SIGPIPE
@ -1107,7 +1109,9 @@ Init_signal(void)
install_sighandler(SIGBUS, sigbus); install_sighandler(SIGBUS, sigbus);
#endif #endif
#ifdef SIGSEGV #ifdef SIGSEGV
#ifdef USE_SIGALTSTACK
register_sigaltstack(); register_sigaltstack();
#endif
install_sighandler(SIGSEGV, sigsegv); install_sighandler(SIGSEGV, sigsegv);
#endif #endif
} }