diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-11-23 11:20:53 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-11-23 11:20:53 +0100 |
commit | cccb6d4e87053ed63c74aee063fa84eb63ebf7b8 (patch) | |
tree | f1098c8ca0e6fa500e1e75f6b1c76650afe507ec /signal/Makefile | |
parent | 59d2cbb1fe4b8601d5cbd359c3806973eab6c62d (diff) | |
download | glibc-cccb6d4e87053ed63c74aee063fa84eb63ebf7b8.tar.gz glibc-cccb6d4e87053ed63c74aee063fa84eb63ebf7b8.tar.xz glibc-cccb6d4e87053ed63c74aee063fa84eb63ebf7b8.zip |
sigwait: Do not fail with EINTR and return error code [BZ #22478]
Since commit 8b0e795aaa445e9167aa07b282c5720b35342c07 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>
Diffstat (limited to 'signal/Makefile')
-rw-r--r-- | signal/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/signal/Makefile b/signal/Makefile index a6a1289437..c2dc719d70 100644 --- a/signal/Makefile +++ b/signal/Makefile @@ -45,8 +45,8 @@ routines := signal raise killpg \ allocrtsig sigtimedwait sigwaitinfo sigqueue \ sighold sigrelse sigignore sigset -tests := tst-signal tst-sigset tst-sigsimple tst-raise tst-sigset2 - +tests := tst-signal tst-sigset tst-sigsimple tst-raise tst-sigset2 \ + tst-sigwait-eintr \ include ../Rules |