* libc/signal/signal.c (_raise_r): Don't attempt to initialize the

signal table, just use a default, in case initialization cause
recursion.
This commit is contained in:
DJ Delorie 2007-10-31 22:22:31 +00:00
parent 6eedb2be6d
commit 69bfb481a8
2 changed files with 11 additions and 4 deletions

View 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> 2007-10-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating * libc/stdlib/wcstombs_r.c: Add SUSV2 support for calculating

View File

@ -154,10 +154,11 @@ _DEFUN (_raise_r, (ptr, sig),
return -1; return -1;
} }
if (ptr->_sig_func == NULL && _init_signal_r (ptr) != 0) if (ptr->_sig_func == NULL)
return -1; func = SIG_DFL;
else
func = ptr->_sig_func[sig]; func = ptr->_sig_func[sig];
if (func == SIG_DFL) if (func == SIG_DFL)
return _kill_r (ptr, _getpid_r (ptr), sig); return _kill_r (ptr, _getpid_r (ptr), sig);
else if (func == SIG_IGN) else if (func == SIG_IGN)