Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Christopher Faylor <cgf-use-the-mailinglist-please@sourceware.org>
To: Mark Mitchell <mark@codesourcery.com>, gdb-patches@sources.redhat.com
Subject: Re: PATCH: Detect closed file descriptors on Windows
Date: Thu, 12 Jan 2006 20:40:00 -0000	[thread overview]
Message-ID: <20060112204003.GA2887@trixie.casa.cgf.cx> (raw)
In-Reply-To: <8f2776cb0601121222j2937998dn2bd5670af1692b3e@mail.gmail.com>

On Thu, Jan 12, 2006 at 12:22:28PM -0800, Jim Blandy wrote:
>On 1/12/06, Mark Mitchell <mark@codesourcery.com> wrote:
>> Jim Blandy wrote:
>> > 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) && ..."?
>>
>> Definitely.
>>
>> I got lucky because GDB (at least in simple cases) tends to pass the
>> same set of descriptors for readfds and exceptfds.
>>
>> OK with that change?
>
>Yes, it looks fine to me.
>
>It's a shame that even though readfds, writefds, and exceptfds look
>parallel in the interface, each of them is handled rather differently
>in the code (i.e., writefds is asserted to be correct as passed;
>exceptfds is made correct by the handle-collecting loop; and readfds
>is pared down to the correct set after the call).  But I don't think
>that's your problem to fix.

That would be Windows problem to fix, I think.  :-)

>If I'm reading gdb/MAINTAINERS right, Chris Faylor is the one who
>needs to approve this; his entry doesn't restrict his oversight to
>Cygwin Windows, which is what I thought he was interested in.

Go ahead and check it in, Mark.

cgf


  reply	other threads:[~2006-01-12 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-12  0:11 Mark Mitchell
2006-01-12  0:39 ` Jim Blandy
2006-01-12 15:57   ` Mark Mitchell
2006-01-12 20:22     ` Jim Blandy
2006-01-12 20:40       ` Christopher Faylor [this message]
2006-01-14  5:14         ` Mark Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060112204003.GA2887@trixie.casa.cgf.cx \
    --to=cgf-use-the-mailinglist-please@sourceware.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mark@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox