From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28815 invoked by alias); 12 Jan 2006 00:39:48 -0000 Received: (qmail 28807 invoked by uid 22791); 12 Jan 2006 00:39:48 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.192) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jan 2006 00:39:46 +0000 Received: by zproxy.gmail.com with SMTP id 34so278858nzf for ; Wed, 11 Jan 2006 16:39:44 -0800 (PST) Received: by 10.36.9.16 with SMTP id 16mr1441351nzi; Wed, 11 Jan 2006 16:39:44 -0800 (PST) Received: by 10.37.2.42 with HTTP; Wed, 11 Jan 2006 16:39:44 -0800 (PST) Message-ID: <8f2776cb0601111639r61642795la665387645e44bfa@mail.gmail.com> Date: Thu, 12 Jan 2006 00:39:00 -0000 From: Jim Blandy To: mark@codesourcery.com Subject: Re: PATCH: Detect closed file descriptors on Windows Cc: gdb-patches@sources.redhat.com In-Reply-To: <200601112147.k0BLlatG000696@sethra.codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200601112147.k0BLlatG000696@sethra.codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00119.txt.bz2 On 1/11/06, Mark Mitchell 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) && ..."?