1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00
1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* manual/locale.texi: Fix typos.
This commit is contained in:
Ulrich Drepper
1998-09-10 17:40:29 +00:00
parent 26afaa6357
commit 5e0889da39
5 changed files with 45 additions and 28 deletions

View File

@ -1,3 +1,8 @@
1998-09-02 11:08 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* signals.c (sigaction): Check that sig is less than NSIG to avoid
array index overflow.
1998-09-06 10:56 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/pthread/semaphore.h: New file.

View File

@ -102,7 +102,8 @@ int sigaction(int sig, const struct sigaction * act,
if (act)
{
newact = *act;
if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL)
if (act->sa_handler != SIG_IGN && act->sa_handler != SIG_DFL
&& sig < NSIG)
newact.sa_handler = pthread_sighandler;
newactp = &newact;
}
@ -110,9 +111,13 @@ int sigaction(int sig, const struct sigaction * act,
newactp = NULL;
if (__sigaction(sig, newactp, oact) == -1)
return -1;
if (oact != NULL) oact->sa_handler = sighandler[sig];
if (act)
sighandler[sig] = act->sa_handler;
if (sig < NSIG)
{
if (oact != NULL)
oact->sa_handler = sighandler[sig];
if (act)
sighandler[sig] = act->sa_handler;
}
return 0;
}