Fix compliance bug in sigpending.
authorEric Blake <ebb9@byu.net>
Mon, 16 Jun 2008 20:17:11 +0000 (14:17 -0600)
committerEric Blake <ebb9@byu.net>
Mon, 16 Jun 2008 20:17:11 +0000 (14:17 -0600)
* lib/sigprocmask.c (sigpending): Return pending array via
parameter, not return value.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/sigprocmask.c

index c2f2a8137bdd00fae6e539d890dd6e063bdc7b6c..054cec07f5bed02a4d6ffe7c0450641f72efcb8a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-06-16  Eric Blake  <ebb9@byu.net>
+
+       Fix compliance bug in sigpending.
+       * lib/sigprocmask.c (sigpending): Return pending array via
+       parameter, not return value.
+
 2008-06-14  Eric Blake  <ebb9@byu.net>
 
        Improve obstack-printf test code.
index 221fc96566e5df83b24586c09833b9d80ab85403..e2f6d8bd97a0d6299036da03b01a7c723b024a39 100644 (file)
@@ -1,5 +1,5 @@
 /* POSIX compatible signal blocking.
-   Copyright (C) 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2006-2008 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
    This program is free software: you can redistribute it and/or modify
@@ -107,7 +107,8 @@ sigpending (sigset_t *set)
   for (sig = 0; sig < NSIG; sig++)
     if (pending_array[sig])
       pending |= 1U << sig;
-  return pending;
+  *set = pending;
+  return 0;
 }
 
 /* The previous signal handlers.