This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/22478] sigwait can fail with EINTR
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 23 Nov 2017 10:22:44 +0000
- Subject: [Bug libc/22478] sigwait can fail with EINTR
- Auto-submitted: auto-generated
- References: <bug-22478-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=22478
--- Comment #4 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via cccb6d4e87053ed63c74aee063fa84eb63ebf7b8 (commit)
from 59d2cbb1fe4b8601d5cbd359c3806973eab6c62d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cccb6d4e87053ed63c74aee063fa84eb63ebf7b8
commit cccb6d4e87053ed63c74aee063fa84eb63ebf7b8
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Nov 23 11:20:53 2017 +0100
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>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++
signal/Makefile | 4 +-
signal/tst-sigwait-eintr.c | 85 +++++++++++++++++++++++++++++++++++++
sysdeps/unix/sysv/linux/sigwait.c | 11 ++++-
4 files changed, 104 insertions(+), 4 deletions(-)
create mode 100644 signal/tst-sigwait-eintr.c
--
You are receiving this mail because:
You are on the CC list for the bug.