Skip to content

Commit

Permalink
(__sigwait): The return value semantics for sigtimedwait is different…
Browse files Browse the repository at this point in the history
…. Rework the return value handling and don't pass in an siginfo variable.
  • Loading branch information
Ulrich Drepper committed Sep 29, 2002
1 parent 28b4869 commit 8a81519
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions sysdeps/unix/sysv/linux/sigwait.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8a81519

Please sign in to comment.