[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] safe-read.[ch] (safe_read): what do you think?
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] safe-read.[ch] (safe_read): what do you think? |
Date: |
Mon, 2 Dec 2002 19:51:01 +0100 (CET) |
Jim Meyering writes:
> FYI, I've just checked in this change to restore
> the old (coreutils) behavior:
>
> * safe-read.c (EINTR): Define.
> (safe_read): Rewrite to iterate IFF the read fails with EINTR.
>
> because the previous version didn't work as used by cat.
Thanks. I had put in the EOF handling into full-read.c but forgot it
in safe-read.c :-(.
I've applied your changes to safe-write.[hc] also, but removed the
suspicious definition of EINTR: if EINTR is not defined a "while (0)"
is sufficient.
Bruno