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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | signal.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Nov 22 23:03:47 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> + + * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X. + Uses SIGSTKSZ. + Fri Nov 21 21:50:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org> * signal.c (register_sigaltstack): use alternative stack for @@ -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; |