On Tue, Sep 05, 2000 at 07:50:56PM +0400, Andrey A. Chernov wrote:
> Consider this comment comes from screen(1):
> /*
>  * Define this if your system exits select() immediatly if a pipe is
>  * opened read-only and no writer has opened it.
>  */
> #define BROKEN_PIPE 1
> We have broken(?) pipe, according to this statement. At least, we have
> select return code -1 with wrong errno == 0.

qmail calls this 'named pipe bug 1'. The workaround (which screen
probably uses too) is to let the process doing the select() also have
one fd opened for writing on the pipe. With that write-open, select()
will only return if there is actual data waiting inside the pipe.

I have filed a PR (19871) for this I think about 2 months ago, somebody
submitted a patch but I never gotten around to testing it.

I surely do think this behaviour is broken.


Greetz, Peter
dataloss networks

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to