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

ruby-changes:8898

From: usa <ko1@a...>
Date: Mon, 1 Dec 2008 16:06:41 +0900 (JST)
Subject: [ruby-changes:8898] Ruby:r20434 (ruby_1_9_1): * signal.c (register_sigaltstack): no need to define on non-sigaltstack

usa	2008-12-01 16:06:26 +0900 (Mon, 01 Dec 2008)

  New Revision: 20434

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

  Log:
    * signal.c (register_sigaltstack): no need to define on non-sigaltstack
      platform.

  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 20433)
+++ ruby_1_9_1/ChangeLog	(revision 20434)
@@ -1,3 +1,8 @@
+Mon Dec  1 16:06:15 2008  NAKAMURA Usaku  <usa@r...>
+
+	* signal.c (register_sigaltstack): no need to define on non-sigaltstack
+	  platform.
+
 Sat Nov 29 23:56:44 2008  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* man/irb.1 (EXAMPLES): new section
Index: ruby_1_9_1/signal.c
===================================================================
--- ruby_1_9_1/signal.c	(revision 20433)
+++ ruby_1_9_1/signal.c	(revision 20434)
@@ -446,8 +446,6 @@
     if (sigaltstack(&newSS, &oldSS) < 0) 
 	rb_bug("register_sigaltstack. error\n");
 }
-#else
-#define register_sigaltstack() ((void)0)
 #endif
 
 static sighandler_t
@@ -716,7 +714,9 @@
 #ifdef SIGSEGV
       case SIGSEGV:
         func = (sighandler_t)sigsegv;
+# ifdef USE_SIGALTSTACK
         register_sigaltstack();
+# endif
         break;
 #endif
 #ifdef SIGPIPE
@@ -1124,7 +1124,9 @@
     install_sighandler(SIGBUS, sigbus);
 #endif
 #ifdef SIGSEGV
+# ifdef USE_SIGALTSTACK
     register_sigaltstack();
+# endif
     install_sighandler(SIGSEGV, (sighandler_t)sigsegv);
 #endif
     }

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

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