This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH, libgfortran] PR 67585 Handle EINTR
- From: Mike Stump <mikestump at comcast dot net>
- To: Jack Howarth <howarth dot at dot gcc at gmail dot com>
- Cc: Janne Blomqvist <blomqvist dot janne at gmail dot com>, Fritz Reese <fritzoreese at gmail dot com>, FX <fxcoudert at gmail dot com>, Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 7 Oct 2016 12:55:45 -0700
- Subject: Re: [PATCH, libgfortran] PR 67585 Handle EINTR
- Authentication-results: sourceware.org; auth=none
- References: <1475843186-3429-1-git-send-email-blomqvist.janne@gmail.com> <F04C59DD-1F6D-4E26-AC2E-A1981551A555@gmail.com> <CAO9iq9FKUvfRDqpCSLCC0nwA5UcpFX7ocP9NVmMu+YVJx=NHbg@mail.gmail.com> <CAE4aFA=TAzyrPB5rCHEMzkLeSEm1CAPnn10N=yqo_Bd-Kd-vpQ@mail.gmail.com> <CAO9iq9GBV+JSTg-j589iHwtUGx9nqka2J_+iop-pz-u28wwMkA@mail.gmail.com> <CAJMcOU-x=amNE2aFWpkSEW+Eg_z0Wy_TvC01VowVDWhUfv9ApQ@mail.gmail.com>
On Oct 7, 2016, at 9:42 AM, Jack Howarth <howarth.at.gcc@gmail.com> wrote:
>
> So using EINTR properly can be really tricky.
I'd not phrase it that way. I'd phrase it as deferral can be tricky and choosing what action to do in a signal handler can be tricky.
I don't mention deferral nor signal semantics, as these are significantly more challenging. Merely looping on EINTR I think is a no-brainer.