Current-Users archive

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

Re: pipe read returning EAGAIN

On Tue, Feb 09, 2016 at 08:19:13PM +0000, Michael van Elst wrote:
> (Manuel Bouyer) writes:
> >It does retry because the same code is used after the pipe has been closed
> >(the child exited or has been killed) in this case it's OK to wait for
> >data or EOF which will happen very soon.
> Shouldn't it turn on blocking mode on the filedescriptor if it intends
> to wait ?

it should probably but I don't know why the code is this way. Maybe there
are systems where turning off O_NONBLOCK doens't work ...

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference

Home | Main Index | Thread Index | Old Index