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

ruby-changes:8798

From: yugui <ko1@a...>
Date: Sun, 23 Nov 2008 16:07:59 +0900 (JST)
Subject: [ruby-changes:8798] Ruby:r20334 (trunk, ruby_1_9_1): * signal.c (default_handler, Init_signal): compile error if

yugui	2008-11-23 16:07:34 +0900 (Sun, 23 Nov 2008)

  New Revision: 20334

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

  Log:
    * signal.c (default_handler, Init_signal): compile error if
      USE_SIGALTSTACK is not defined.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20333)
+++ ChangeLog	(revision 20334)
@@ -1,3 +1,8 @@
+Sun Nov 23 16:04:05 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* signal.c (default_handler, Init_signal): compile error if
+	  USE_SIGALTSTACK is not defined.
+
 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.
Index: signal.c
===================================================================
--- signal.c	(revision 20333)
+++ signal.c	(revision 20334)
@@ -699,7 +699,9 @@
 #ifdef SIGSEGV
       case SIGSEGV:
         func = sigsegv;
+#ifdef USE_SIGALTSTACK
         register_sigaltstack();
+#endif
         break;
 #endif
 #ifdef SIGPIPE
@@ -1107,7 +1109,9 @@
     install_sighandler(SIGBUS, sigbus);
 #endif
 #ifdef SIGSEGV
+#ifdef USE_SIGALTSTACK
     register_sigaltstack();
+#endif
     install_sighandler(SIGSEGV, sigsegv);
 #endif
     }
Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 20333)
+++ ruby_1_9_1/ChangeLog	(revision 20334)
@@ -1,3 +1,8 @@
+Sun Nov 23 16:04:05 2008  Yuki Sonoda (Yugui)  <yugui@y...>
+
+	* signal.c (default_handler, Init_signal): compile error if
+	  USE_SIGALTSTACK is not defined.
+
 Sun Nov 23 13:39:49 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* ext/pty/pty.c: reverts 20326. [ruby-dev:37146].
Index: ruby_1_9_1/signal.c
===================================================================
--- ruby_1_9_1/signal.c	(revision 20333)
+++ ruby_1_9_1/signal.c	(revision 20334)
@@ -699,7 +699,9 @@
 #ifdef SIGSEGV
       case SIGSEGV:
         func = sigsegv;
+#ifdef USE_SIGALTSTACK
         register_sigaltstack();
+#endif
         break;
 #endif
 #ifdef SIGPIPE
@@ -1107,7 +1109,9 @@
     install_sighandler(SIGBUS, sigbus);
 #endif
 #ifdef SIGSEGV
+#ifdef USE_SIGALTSTACK
     register_sigaltstack();
+#endif
     install_sighandler(SIGSEGV, sigsegv);
 #endif
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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