diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-23 07:07:34 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-23 07:07:34 +0000 |
commit | 0abd67ea190c4cb7deacc227c2c9e9e945ac9598 (patch) | |
tree | 8526b723ad428cd13e60d4295d8fe60dcedb3da4 /signal.c | |
parent | 7606241c6e762a992b358c08956cf63cf6debbde (diff) |
* 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
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |