diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-23 04:17:52 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-23 04:17:52 +0000 |
| commit | 4aa2f71a345d1692f58cecad029e451c6f00bfa9 (patch) | |
| tree | ec9b8fcdc099ea997e92e6defb5c64ba4b7171ac | |
| parent | 8e7a79420c1a5fe620557c6bf5c62dffcfb0929d (diff) | |
| download | ruby-4aa2f71a345d1692f58cecad029e451c6f00bfa9.tar.gz ruby-4aa2f71a345d1692f58cecad029e451c6f00bfa9.tar.xz ruby-4aa2f71a345d1692f58cecad029e451c6f00bfa9.zip | |
* signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
Uses SIGSTKSZ. this fixes [ruby-core:20040].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20331 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 @@ +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. + Uses SIGSTKSZ. + Sat Nov 22 21:29:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp> * test/ruby/test_method.rb (test_default_accessiblity): test case 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; |
