diff options
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 9a32709fcd4..b073c940cad 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -68,7 +68,7 @@ fhandler_tty_master::init (int ntty) h = new cygthread (process_ioctl, NULL, "ttyioctl"); SetThreadPriority (*h, THREAD_PRIORITY_HIGHEST); - output_thread = new cygthread (process_output, NULL, "ttyout"); + output_thread = new cygthread (process_output, cygself, "ttyout"); SetThreadPriority (*output_thread, THREAD_PRIORITY_HIGHEST); return 0; @@ -368,7 +368,7 @@ out: } static DWORD WINAPI -process_output (void *) +process_output (void *self) { char buf[OUT_BUFFER_SIZE*2]; @@ -379,7 +379,7 @@ process_output (void *) { if (n < 0) termios_printf ("ReadFile %E"); - cygthread *t = tty_master->output_thread; + cygthread *t = (cygthread *) self; tty_master->output_thread = NULL; t->exit_thread (); } |