projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069ffe7
)
(pthread_sigmask): Return correct value in case of an error.
author
drepper
<drepper>
Wed, 27 Nov 2002 19:57:12 +0000
(19:57 +0000)
committer
drepper
<drepper>
Wed, 27 Nov 2002 19:57:12 +0000
(19:57 +0000)
nptl/sysdeps/i386/pthread_sigmask.c
patch
|
blob
|
history
diff --git
a/nptl/sysdeps/i386/pthread_sigmask.c
b/nptl/sysdeps/i386/pthread_sigmask.c
index
2ae9198
..
aa07184
100644
(file)
--- a/
nptl/sysdeps/i386/pthread_sigmask.c
+++ b/
nptl/sysdeps/i386/pthread_sigmask.c
@@
-30,5
+30,9
@@
pthread_sigmask (how, newmask, oldmask)
const sigset_t *newmask;
sigset_t *oldmask;
{
- return INLINE_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+ int result = INTERNAL_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+
+ return (INTERNAL_SYSCALL_ERROR_P (result)
+ ? INTERNAL_SYSCALL_ERRNO (result)
+ : 0);
}