glibc/signal
Florian Weimer cccb6d4e87 sigwait: Do not fail with EINTR and return error code [BZ #22478]
Since

commit 8b0e795aaa
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Wed Nov 1 11:49:05 2017 -0200

    Simplify Linux sig{timed}wait{info} implementations

sigwait can fail with EINTR.  Applications do not expect that, and the
error code is not documented in POSIX or the manual pages.

This commit restores the previous behavior by retrying the system call
on EINTR.  It also returns the error code, not -1, on the remaing
errors.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
2017-11-23 11:20:53 +01:00
..
bits/types
sys
allocrtsig.c
kill.c
killpg.c
Makefile sigwait: Do not fail with EINTR and return error code [BZ #22478] 2017-11-23 11:20:53 +01:00
raise.c
sigaction.c
sigaddset.c
sigaltstack.c
sigandset.c
sigblock.c
sigdelset.c
sigempty.c
sigfillset.c
siggetmask.c
sighold.c Optimize sighold implementation 2017-11-06 17:37:57 -02:00
sigignore.c
sigintr.c
sigisempty.c
sigismem.c
signal.c
signal.h
sigorset.c
sigpause.c
sigpending.c
sigprocmask.c
sigqueue.c
sigrelse.c Optimize sigrelse implementation 2017-11-15 15:45:39 -02:00
sigreturn.c
sigset.c
sigsetmask.c
sigsetops.c
sigstack.c
sigsuspend.c
sigtimedwait.c
sigvec.c
sigwait.c
sigwaitinfo.c
sysv_signal.c
tst-raise.c
tst-signal.c
tst-sigset2.c
tst-sigset.c
tst-sigsimple.c
tst-sigwait-eintr.c sigwait: Do not fail with EINTR and return error code [BZ #22478] 2017-11-23 11:20:53 +01:00
Versions