Subject: Re: read() and select()
To: Michael Cuddy <email@example.com>
From: Todd Vierling <firstname.lastname@example.org>
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 <email@example.com> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.