]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 17 Jun 1999 10:47:43 +0000 (10:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 17 Jun 1999 10:47:43 +0000 (10:47 +0000)
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>.

ChangeLog
sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c

index e2e3f884b4af876e866df3f4b478f8c755669420..c34ca25a0b4649eb56554f4edb21b5638620db01 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 20cde2da2cdfac5896723927dfd0cc3fa153684c..b33feeb09c66ee5fed0779b75ec38ca57e3e44c9 100644 (file)
@@ -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)
     {
-      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;
+      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;
     }
 
This page took 0.051159 seconds and 5 git commands to generate.