1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.

Uses SIGSTKSZ.  this fixes [ruby-core:20040].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-11-23 04:17:52 +00:00
parent 31c8291618
commit 7c9a77f880
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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;