[Bug libfortran/67585] Retry system calls failing with EINTR
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Tue Sep 15 13:56:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67585
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-09-15
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> libgfortran should retry system calls failing with EINTR, with the exception
> of close(). Rationale and further reading e.g. at
> https://www.python.org/dev/peps/pep-0475/
I don't understand what is expected. The only place where EINTR is used is in
raw_write file io/unix.c with a comment
/* We must write in a loop since some systems don't restart system
calls in case of a signal. */
For raw_read, the comment is
/* For read we can't do I/O in a loop like raw_write does, because
that will break applications that wait for interactive I/O. */
More information about the Gcc-bugs
mailing list