projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b4869
)
(__sigwait): The return value semantics for sigtimedwait is different. Rework the...
author
Ulrich Drepper
<drepper@redhat.com>
Sun, 29 Sep 2002 22:02:28 +0000
(22:02 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Sun, 29 Sep 2002 22:02:28 +0000
(22:02 +0000)
sysdeps/unix/sysv/linux/sigwait.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/sigwait.c
b/sysdeps/unix/sysv/linux/sigwait.c
index
522359e
..
39cc3e9
100644
(file)
--- a/
sysdeps/unix/sysv/linux/sigwait.c
+++ b/
sysdeps/unix/sysv/linux/sigwait.c
@@
-36,15
+36,20
@@
__sigwait (set, sig)
const sigset_t *set;
int *sig;
{
- siginfo_t info;
int ret;
/* XXX The size argument hopefully will have to be changed to the
real size of the user-level sigset_t. */
+ /* XXX INLINE_SYSCALL_NOERROR candiate. */
ret = INLINE_SYSCALL (rt_sigtimedwait, 4, CHECK_SIGSET (set),
- CHECK_1 (&info), NULL, _NSIG / 8);
- if (ret == 0)
- *sig = info.si_signo;
+ NULL, NULL, _NSIG / 8);
+ if (ret != -1)
+ {
+ *sig = ret;
+ ret = 0;
+ }
+ else
+ ret = errno;
return ret;
}