]> sourceware.org Git - newlib-cygwin.git/commitdiff
* libc/signal/signal.c (_raise_r): Don't attempt to initialize the
authorDJ Delorie <dj@redhat.com>
Wed, 31 Oct 2007 22:22:31 +0000 (22:22 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 31 Oct 2007 22:22:31 +0000 (22:22 +0000)
signal table, just use a default, in case initialization cause
recursion.

newlib/ChangeLog
newlib/libc/signal/signal.c

index f8609cb107a53fca2fd4ad40b809f4c033042fc0..609e20999900e23d6c5d45cd03a707387ed3fc0b 100644 (file)
@@ -1,3 +1,9 @@
+2007-10-31  DJ Delorie  <dj@redhat.com>
+
+       * libc/signal/signal.c (_raise_r): Don't attempt to initialize the
+       signal table, just use a default, in case initialization cause
+       recursion.
+
 2007-10-23  Jeff Johnston  <jjohnstn@redhat.com>
 
        * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating
index bfb85e66aed8922f9a17b9db142424fef1bb6bf0..183004725360bb11f4291030cde0231e105e2a2e 100644 (file)
@@ -154,10 +154,11 @@ _DEFUN (_raise_r, (ptr, sig),
       return -1;
     }
 
-  if (ptr->_sig_func == NULL && _init_signal_r (ptr) != 0)
-    return -1;
-  
-  func = ptr->_sig_func[sig];
+  if (ptr->_sig_func == NULL)
+    func = SIG_DFL;
+  else
+    func = ptr->_sig_func[sig];
+
   if (func == SIG_DFL)
     return _kill_r (ptr, _getpid_r (ptr), sig);
   else if (func == SIG_IGN)
This page took 0.045712 seconds and 5 git commands to generate.