diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 14:52:28 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-22 14:52:28 +0000 |
commit | d9370969de791f6acb8893ea7bffdf3f9321d34a (patch) | |
tree | ba64476ed24c5268268fc049e8527c6862368b54 /signal.c | |
parent | 54a59308c486ab1a57a79423d3e23def2deaffae (diff) |
* signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
Uses SIGSTKSZ.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -416,7 +416,11 @@ typedef RETSIGTYPE (*sighandler_t)(int); #ifdef POSIX_SIGNAL #ifdef USE_SIGALTSTACK +#ifdef SIGSTKSZ +#define ALT_STACK_SIZE SIGSTKSZ +#else #define ALT_STACK_SIZE (4*1024) +#endif /* alternate stack for SIGSEGV */ static void register_sigaltstack() { stack_t newSS, oldSS; |