This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit] Handle EOF on terminals opened with ENONBLOCK...
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 24 Apr 2009 13:19:49 +0300
- Subject: Re: [RFA/commit] Handle EOF on terminals opened with ENONBLOCK...
- References: <20090423191446.GB7512@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Thu, 23 Apr 2009 12:14:46 -0700
> From: Joel Brobecker <brobecker@adacore.com>
>
> 2009-04-23 Joel Brobecker <brobecker@adacore.com>
>
> * utils.c: Add include of gdb_usleep.h.
> (defaulted_query): Detect false EOF conditions that happen
> on terminals opened with the O_NONBLOCK flag when there is
> nothing to read.
>
> We've tested this patch on all the hosts that AdaCore supports.
> This includes GNU/Linux, Solaris, AIX, Tru64, MinGW...
> Would it be OK to commit?
Fine with me, but I'd prefer that you tell more details in the
comment, and/or maybe add a link to this thread of discussion. As
written, the comment doesn't give any clues, not even to what OS was
that discovered on.
Thanks.