[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: partial read() bug



Previously Christoph Pfisterer wrote:
> Below is a patch that fixes this with a wrapper for read() that 
> handles partial reads and interrupted system calls.

Patch looks good, merged in CVS. 

> I guess the reason why this has gone unnoticed for so long is that 
> the pipe implementation in Linux tries to avoid partial reads unless 
> it hits end-of-file.

I've gotten a few bugreports about files not being installed that
might be explained by this actually. I've never been able to reproduce
that so I can't be sure though.

Wichert.

-- 
   ________________________________________________________________
 / Generally uninteresting signature - ignore at your convenience  \
| wichert@cistron.nl                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |



Reply to: