summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Beare <bruce.j.beare@intel.com>2010-12-03 16:48:47 -0800
committerDima Zavin <dima@android.com>2010-12-09 15:17:28 -0800
commitff3129b0fe52fabec273077871cb35515465d44b (patch)
tree04f4da31b746ffdbc9b3e08eceb6e27976e97173
parentabdffc4e23f05d07004eeb46e7c0122204c22a55 (diff)
downloadbionic-ff3129b0fe52fabec273077871cb35515465d44b.zip
bionic-ff3129b0fe52fabec273077871cb35515465d44b.tar.gz
bionic-ff3129b0fe52fabec273077871cb35515465d44b.tar.bz2
sigsetmask.c was not processing the "mask" argument.
Change-Id: I79b898ea5b882e8c0564e25466e827a9bedda6e8 Author: yhe19 <yunan.he@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
-rw-r--r--libc/unistd/sigsetmask.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/unistd/sigsetmask.c b/libc/unistd/sigsetmask.c
index b987595..4f46458 100644
--- a/libc/unistd/sigsetmask.c
+++ b/libc/unistd/sigsetmask.c
@@ -38,6 +38,8 @@ sigsetmask(int mask)
sigset_t the_sigset;
} in, out;
+ in.the_mask = mask;
+
n = sigprocmask(SIG_SETMASK, &in.the_sigset, &out.the_sigset);
if (n)
return n;