Fix client to allow multiple to clients to run concurrently for WIN32

Remove the names for the bounce_empty, bounce_full and ctrl_c_event
events. The named events were being shared between all clients running
on a WIN32 machine which created the affect of disconnecting a client
when an input event occurred in another client.  Broken in commit
f082ef9f (v4.3.11).
This commit is contained in:
Ron Koenderink 2009-02-01 08:58:37 -06:00
parent d1ff2a6089
commit a7ee69d112

View file

@ -160,9 +160,9 @@ stdin_read_thread(LPVOID lpParam)
static void
sysdep_stdin_init(void)
{
bounce_empty = CreateEvent(NULL, FALSE, TRUE, "bounce_empty");
bounce_full = CreateEvent(NULL, TRUE, FALSE, "bounce_full");
ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, "Ctrl_C");
bounce_empty = CreateEvent(NULL, FALSE, TRUE, NULL);
bounce_full = CreateEvent(NULL, TRUE, FALSE, NULL);
ctrl_c_event = CreateEvent(NULL, FALSE, FALSE, NULL);
CreateThread(NULL, 0, stdin_read_thread, NULL, 0, NULL);
}