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 Fix sigval namespace (bug 21944). 2017-08-16 20:33:59 +00:00
sys
allocrtsig.c
kill.c Hide internal signal functions [BZ #18822] 2017-10-01 16:04:41 -07:00
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 Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
sigaltstack.c Fix struct sigaltstack namespace (bug 21517). 2017-06-05 10:17:46 +00:00
sigandset.c Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
sigblock.c Hide internal signal functions [BZ #18822] 2017-10-01 16:04:41 -07:00
sigdelset.c Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
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 Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
sigismem.c Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
signal.c
signal.h Fix sigval namespace (bug 21944). 2017-08-16 20:33:59 +00:00
sigorset.c Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
sigpause.c
sigpending.c
sigprocmask.c Hide internal signal functions [BZ #18822] 2017-10-01 16:04:41 -07:00
sigqueue.c
sigrelse.c Optimize sigrelse implementation 2017-11-15 15:45:39 -02:00
sigreturn.c
sigset.c
sigsetmask.c
sigsetops.c Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00
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 Remove __need macros from signal.h. 2017-05-20 19:04:43 -04:00