This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: Detect closed file descriptors on Windows
- From: Jim Blandy <jimb at red-bean dot com>
- To: mark at codesourcery dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 11 Jan 2006 16:39:44 -0800
- Subject: Re: PATCH: Detect closed file descriptors on Windows
- References: <200601112147.k0BLlatG000696@sethra.codesourcery.com>
On 1/11/06, Mark Mitchell <mark@codesourcery.com> wrote:
> gdb_assert (!FD_ISSET (fd, writefds));
> ! if (FD_ISSET (fd, readfds)
> ! && !FD_ISSET (fd, exceptfds))
> ! continue;
Don't you mean, "if (! FD_ISSET (fd, readfds) && ..."?