mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Update.
1999-06-17 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Don't fail always when oact is NULL. Patch by Christian Meder <meder@isr.uni-stuttgart.de>.
This commit is contained in:
parent
49409c3345
commit
39abffb337
@ -1,3 +1,9 @@
|
||||
1999-06-17 Ulrich Drepper <drepper@cygnus.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Don't fail
|
||||
always when oact is NULL.
|
||||
Patch by Christian Meder <meder@isr.uni-stuttgart.de>.
|
||||
|
||||
1999-06-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||
|
||||
* math/libm-test.c (jn_test): Adjust delta.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* POSIX.1 sigaction call for Linux/SPARC.
|
||||
Copyright (C) 1997, 1998 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Miguel de Icaza (miguel@nuclecu.unam.mx), 1997.
|
||||
|
||||
@ -118,12 +118,15 @@ __sigaction (int sig, __const struct sigaction *act, struct sigaction *oact)
|
||||
ret = r_sig;
|
||||
}
|
||||
|
||||
if (oact && ret >= 0)
|
||||
if (ret >= 0)
|
||||
{
|
||||
if (oact)
|
||||
{
|
||||
oact->sa_handler = k_osigact.k_sa_handler;
|
||||
oact->sa_mask.__val[0] = k_osigact.sa_mask;
|
||||
oact->sa_flags = k_osigact.sa_flags;
|
||||
oact->sa_restorer = NULL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user