simon-svn: putty: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Mon Jan 12 20:41:29 GMT 2009


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       8410
Date:           2009-01-12 20:41:28 +0000 (Mon, 12 Jan 2009)

Log message (15 lines):
Patch from Gert-Jan Vons: create an event handle to go in the
OVERLAPPED structure in output threads, as we already do for input
threads. This apparently sorts out a hanging issue with serial ports
when trying to do simultaneous read and write, because (GJV says,
and it sounds plausible to me) in the absence of that event object
Windows signals the file handle itself to notify GetOverlappedResult
that it can return - and since the file handle might be being
signalled by a read operation instead, that leads to ambiguity.
Using an explicit event object in both directions means Windows
always knows which way the data is going.

Also a trivial fix in handle_output_new(), which was referencing the
wrong element of a union due to a copy and paste error. (Since the
result was address-taken and cast to void *, this wasn't a
functional error, but it was conceptually wrong.)

Modified files:
U   putty/windows/winhandl.c

Links:
http://svn.tartarus.org/sgt/?rev=8410&view=rev
http://svn.tartarus.org/sgt/putty/windows/winhandl.c?rev=8410&r1=8409&r2=8410



More information about the tartarus-commits mailing list