Subject: Re: read() and select()
To: Michael Cuddy <>
From: Todd Vierling <>
List: tech-userlevel
Date: 11/17/2000 16:06:37
On Fri, 17 Nov 2000, Michael Cuddy wrote:

: The problem is that select() is returning that the read-side fd is ready
: for reading, when the process exits (closing the write side) -- but a read()
: will return 0.  

A read() of 0 indicates EOF, and the fd shows up in readfds so you can
handle this condition.

-- Todd Vierling <>  *
-- Speed, stability, security, and support.  Wasabi NetBSD:  Run with it.