* fhandler_tty.cc (fhandler_pty_master::setup): Always create master

thread.
This commit is contained in:
Corinna Vinschen 2010-09-28 10:13:19 +00:00
parent 41c91ad68d
commit 91e0b943a0
2 changed files with 22 additions and 20 deletions

View File

@ -1,3 +1,8 @@
2010-09-28 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_pty_master::setup): Always create master
thread.
2010-09-28 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (gethostid): Use correct path to ProductId registry value.

View File

@ -1796,8 +1796,6 @@ fhandler_pty_master::setup (bool ispty)
if (!(input_mutex = CreateMutex (&sa, FALSE, buf)))
goto err;
if (ispty)
{
/* Create master control pipe which allows the master to duplicate
the pty pipe handles to processes which deserve it. */
__small_sprintf (buf, "\\\\.\\pipe\\cygwin-%S-tty%d-master-ctl",
@ -1817,7 +1815,6 @@ fhandler_pty_master::setup (bool ispty)
errstr = "pty master control thread";
goto err;
}
}
t.from_master = from_master;
t.to_master = to_master;