[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: io_select EPIPE error case? [Was: [PATCH] Prepare pflocal/io.c for a
Re: io_select EPIPE error case? [Was: [PATCH] Prepare pflocal/io.c for a revised hurdselect.c: Pipe case (for review)]
Mon, 26 Nov 2012 14:34:04 +0100
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)
Richard Braun, le Mon 26 Nov 2012 14:30:40 +0100, a écrit :
> On Fri, Nov 23, 2012 at 01:55:19AM +0100, Samuel Thibault wrote:
> > About the behavior change, I'd tend to agree, but I'd rather get others'
> > opinion too.
> > I guess what you actually want to fix is the error case on poll()?
> > (actually here the only error that can happen is EPIPE)
> > (that would have saved a mail roundtrip if you had simply said so in
> > your mail)
> I only see EPIPE in pipe_wait_writable, which is only used in case
> SELECT_WRITE is set. I'm not sure how this will fix the behaviour for
> the POLLIN case.
In the read case, the end of file will be detected by a zero-read, not