changeset 10209:459a0f456fc4

Fix compliance bug in sigpending. * lib/sigprocmask.c (sigpending): Return pending array via parameter, not return value. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Mon, 16 Jun 2008 14:17:11 -0600
parents 02f15297cc9c
children 9f848a3cc15a
files ChangeLog lib/sigprocmask.c
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/sigprocmask.c
+++ b/lib/sigprocmask.c
@@ -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 @@
   for (sig = 0; sig < NSIG; sig++)
     if (pending_array[sig])
       pending |= 1U << sig;
-  return pending;
+  *set = pending;
+  return 0;
 }
 
 /* The previous signal handlers.