[PATCH] fhandler_tty read_retval fix
Christopher Faylor
cgf@redhat.com
Sat Nov 30 14:25:00 GMT 2002
On Fri, Nov 29, 2002 at 08:04:10PM -0600, Steve O wrote:
>This patch fixes a premature EOF if the tty_slave happens to
>read read_retval as the pty_master is executing accept_input.
I think this one needs at least three years of testing before it
can go in.
.
.
.
Just kidding. :-)
Applied.
Thanks,
cgf
P.S. Btw, did you notice that the return value for accept_input
is not being used, AFAICT? I had always wanted to do something
with that but it never seemed to be necessary.
>ChangeLog entry
>2002-11-29 Steve O <bub@io.com>
>
> * fhandler_tty.cc (fhandler_pty_master::accept_input): Moved
> read_retval assignment to prevent race condition. Removed
> read_retval from return statement.
More information about the Cygwin-patches
mailing list