ruby-changes:8796
From: yugui <ko1@a...>
Date: Sun, 23 Nov 2008 13:18:11 +0900 (JST)
Subject: [ruby-changes:8796] Ruby:r20331 (trunk): * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
yugui 2008-11-23 13:17:52 +0900 (Sun, 23 Nov 2008) New Revision: 20331 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20331 Log: * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X. Uses SIGSTKSZ. this fixes [ruby-core:20040]. Modified files: trunk/ChangeLog trunk/signal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20330) +++ ChangeLog (revision 20331) @@ -1,3 +1,8 @@ +Sun Nov 23 00:04:14 2008 Yuki Sonoda (Yugui) <yugui@y...> + + * 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@y...> * test/ruby/test_method.rb (test_default_accessiblity): test case for Index: signal.c =================================================================== --- signal.c (revision 20330) +++ signal.c (revision 20331) @@ -416,7 +416,11 @@ #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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/