[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: |
Jim Meyering |
Subject: |
Re: [Bug-gnulib] safe-read.[ch] (safe_read): what do you think? |
Date: |
Mon, 02 Dec 2002 18:39:33 +0100 |
Bruno Haible <address@hidden> wrote:
> 2002-11-22 Bruno Haible <address@hidden>
...
> * safe-read.c (safe_read): Change return type to size_t. Handle byte
> counts > SSIZE_MAX correctly.
Hi Bruno,
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.
The particular test case is a bit obscure:
Type `cat', then give it a few bytes of input and type ^D.
Normally, that is enough to make cat terminate, but with
the previous version it wasn't; I had to type ^D again.
Jim
- Re: [Bug-gnulib] safe-read.[ch] (safe_read): what do you think?,
Jim Meyering <=