]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 6 Sep 2000 21:12:53 +0000 (21:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 6 Sep 2000 21:12:53 +0000 (21:12 +0000)
* sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.

ChangeLog
sysdeps/posix/signal.c

index 433dbcae521262d90368de299b8fc705d64582d5..667b0749188f08ad1398ae2b096ccef97a76bfab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2000-09-06  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/posix/signal.c: Add sig to act.sa_mask for completeness.
+
        * stdlib/Makefile (tests): Add tst-bsearch.
        * stdlib/tst-bsearch.c: New file.
 
index 2e0cf64de3cf9f5650130586cb822e751472e8fc..b1c3258b08ec50bb460b510bbdb87370df31e318 100644 (file)
@@ -1,5 +1,5 @@
 /* BSD-like signal function.
-   Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1991, 1992, 1996, 1997, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -40,7 +40,8 @@ __bsd_signal (sig, handler)
     }
 
   act.sa_handler = handler;
-  if (__sigemptyset (&act.sa_mask) < 0)
+  if (__sigemptyset (&act.sa_mask) < 0
+      || __sigaddset (&act.sa_mask, sig) < 0)
     return SIG_ERR;
   act.sa_flags = __sigismember (&_sigintr, sig) ? 0 : SA_RESTART;
   if (__sigaction (sig, &act, &oact) < 0)