[前][次][番号順一覧][スレッド一覧]

ruby-changes:8788

From: yugui <ko1@a...>
Date: Sat, 22 Nov 2008 23:52:54 +0900 (JST)
Subject: [ruby-changes:8788] Ruby:r20324 (ruby_1_9_1): * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.

yugui	2008-11-22 23:52:28 +0900 (Sat, 22 Nov 2008)

  New Revision: 20324

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20324

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

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/signal.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20323)
+++ ruby_1_9_1/ChangeLog	(revision 20324)
@@ -1,3 +1,8 @@
+Sat Nov 22 23:03:47 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* 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@r...>
 
 	* signal.c (register_sigaltstack): use alternative stack for
Index: ruby_1_9_1/signal.c
===================================================================
--- ruby_1_9_1/signal.c	(revision 20323)
+++ ruby_1_9_1/signal.c	(revision 20324)
@@ -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/

[前][次][番号順一覧][スレッド一覧]