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

ruby-changes:8897

From: usa <ko1@a...>
Date: Mon, 1 Dec 2008 15:49:54 +0900 (JST)
Subject: [ruby-changes:8897] Ruby:r20433 (trunk): * signal.c (register_sigaltstack): no need to define on non-sigaltstack

usa	2008-12-01 15:49:34 +0900 (Mon, 01 Dec 2008)

  New Revision: 20433

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

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

  Modified files:
    trunk/ChangeLog
    trunk/signal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20432)
+++ ChangeLog	(revision 20433)
@@ -1,3 +1,8 @@
+Mon Dec  1 15:48:47 2008  NAKAMURA Usaku  <usa@r...>
+
+	* signal.c (register_sigaltstack): no need to define on non-sigaltstack
+	  platform.
+
 Mon Dec  1 12:00:45 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* cont.c (rb_fiber_start): calls with exact argument number.
Index: signal.c
===================================================================
--- signal.c	(revision 20432)
+++ signal.c	(revision 20433)
@@ -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/

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