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:
parent
31c8291618
commit
7c9a77f880
2 changed files with 9 additions and 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>
|
Sat Nov 22 21:29:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* test/ruby/test_method.rb (test_default_accessiblity): test case for
|
* test/ruby/test_method.rb (test_default_accessiblity): test case for
|
||||||
|
|
4
signal.c
4
signal.c
|
@ -416,7 +416,11 @@ typedef RETSIGTYPE (*sighandler_t)(int);
|
||||||
|
|
||||||
#ifdef POSIX_SIGNAL
|
#ifdef POSIX_SIGNAL
|
||||||
#ifdef USE_SIGALTSTACK
|
#ifdef USE_SIGALTSTACK
|
||||||
|
#ifdef SIGSTKSZ
|
||||||
|
#define ALT_STACK_SIZE SIGSTKSZ
|
||||||
|
#else
|
||||||
#define ALT_STACK_SIZE (4*1024)
|
#define ALT_STACK_SIZE (4*1024)
|
||||||
|
#endif
|
||||||
/* alternate stack for SIGSEGV */
|
/* alternate stack for SIGSEGV */
|
||||||
static void register_sigaltstack() {
|
static void register_sigaltstack() {
|
||||||
stack_t newSS, oldSS;
|
stack_t newSS, oldSS;
|
||||||
|
|
Loading…
Reference in a new issue