mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 12:08:05 -05:00
Bug fix: since the input thread does not wait for the event object
until _after_ its first read, we should not start by signalling that object in order to trigger the first read. Ahem. [originally from svn r6799]
This commit is contained in:
parent
52cdcc6a7c
commit
911f43b872
@ -273,7 +273,6 @@ struct handle *handle_input_new(HANDLE handle, handle_inputfn_t gotdata,
|
|||||||
h->u.i.ev_to_main = CreateEvent(NULL, FALSE, FALSE, NULL);
|
h->u.i.ev_to_main = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||||
h->u.i.ev_from_main = CreateEvent(NULL, FALSE, FALSE, NULL);
|
h->u.i.ev_from_main = CreateEvent(NULL, FALSE, FALSE, NULL);
|
||||||
h->u.i.gotdata = gotdata;
|
h->u.i.gotdata = gotdata;
|
||||||
h->u.i.busy = FALSE;
|
|
||||||
h->u.i.defunct = FALSE;
|
h->u.i.defunct = FALSE;
|
||||||
h->u.i.moribund = FALSE;
|
h->u.i.moribund = FALSE;
|
||||||
h->u.i.done = FALSE;
|
h->u.i.done = FALSE;
|
||||||
@ -285,8 +284,7 @@ struct handle *handle_input_new(HANDLE handle, handle_inputfn_t gotdata,
|
|||||||
|
|
||||||
CreateThread(NULL, 0, handle_input_threadfunc,
|
CreateThread(NULL, 0, handle_input_threadfunc,
|
||||||
&h->u.i, 0, NULL);
|
&h->u.i, 0, NULL);
|
||||||
|
h->u.i.busy = TRUE;
|
||||||
handle_throttle(&h->u.i, 0); /* start first read operation */
|
|
||||||
|
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user