ruby-changes:46239
From: nobu <ko1@a...>
Date: Sat, 15 Apr 2017 01:07:51 +0900 (JST)
Subject: [ruby-changes:46239] nobu:r58354 (trunk): signal.c: add sigprocmask guard
nobu 2017-04-15 01:07:45 +0900 (Sat, 15 Apr 2017) New Revision: 58354 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58354 Log: signal.c: add sigprocmask guard Modified files: trunk/signal.c Index: signal.c =================================================================== --- signal.c (revision 58353) +++ signal.c (revision 58354) @@ -776,12 +776,16 @@ NORETURN(static void raise_stack_overflo https://github.com/ruby/ruby/blob/trunk/signal.c#L776 static void raise_stack_overflow(int sig, rb_thread_t *th) { +#ifdef HAVE_SIGPROCMASK sigset_t mask; +#endif clear_received_signal(); +#ifdef HAVE_SIGPROCMASK sigemptyset(&mask); sigaddset(&mask, sig); if (sigprocmask(SIG_UNBLOCK, &mask, NULL)) rb_bug_errno("sigprocmask:set", errno); +#endif ruby_thread_stack_overflow(th); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/