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

ruby-changes:26359

From: kosaki <ko1@a...>
Date: Sat, 15 Dec 2012 23:20:35 +0900 (JST)
Subject: [ruby-changes:26359] kosaki:r38410 (trunk): * signal.c (default_handler): remove rb_register_sigaltstack()

kosaki	2012-12-15 23:20:24 +0900 (Sat, 15 Dec 2012)

  New Revision: 38410

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

  Log:
    * signal.c (default_handler): remove rb_register_sigaltstack()
      call. sigaltstack was already registered when creating threads.

  Modified files:
    trunk/ChangeLog
    trunk/signal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38409)
+++ ChangeLog	(revision 38410)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec 15 23:14:32 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* signal.c (default_handler): remove rb_register_sigaltstack()
+	  call. sigaltstack was already registered when creating threads.
+
 Sat Dec 15 23:08:56 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
 
 	* signal.c (rb_sigaltstack_size): new. calculate stack size for
Index: signal.c
===================================================================
--- signal.c	(revision 38409)
+++ signal.c	(revision 38410)
@@ -762,9 +762,6 @@ default_handler(int sig) https://github.com/ruby/ruby/blob/trunk/signal.c#L762
 #ifdef SIGSEGV
       case SIGSEGV:
         func = (sighandler_t)sigsegv;
-# ifdef USE_SIGALTSTACK
-        rb_register_sigaltstack(GET_THREAD());
-# endif
         break;
 #endif
 #ifdef SIGPIPE

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

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