mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* fhandler_tty.cc (fhandler_pty_master::setup): Always create master
thread.
This commit is contained in:
parent
41c91ad68d
commit
91e0b943a0
@ -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>
|
2010-09-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syscalls.cc (gethostid): Use correct path to ProductId registry value.
|
* syscalls.cc (gethostid): Use correct path to ProductId registry value.
|
||||||
|
@ -1796,27 +1796,24 @@ fhandler_pty_master::setup (bool ispty)
|
|||||||
if (!(input_mutex = CreateMutex (&sa, FALSE, buf)))
|
if (!(input_mutex = CreateMutex (&sa, FALSE, buf)))
|
||||||
goto err;
|
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",
|
||||||
|
&installation_key, get_unit ());
|
||||||
|
master_ctl = CreateNamedPipe (buf, PIPE_ACCESS_DUPLEX,
|
||||||
|
PIPE_WAIT | PIPE_TYPE_MESSAGE
|
||||||
|
| PIPE_READMODE_MESSAGE, 1, 4096, 4096,
|
||||||
|
0, &sec_all_nih);
|
||||||
|
if (master_ctl == INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
/* Create master control pipe which allows the master to duplicate
|
errstr = "pty master control pipe";
|
||||||
the pty pipe handles to processes which deserve it. */
|
goto err;
|
||||||
__small_sprintf (buf, "\\\\.\\pipe\\cygwin-%S-tty%d-master-ctl",
|
}
|
||||||
&installation_key, get_unit ());
|
master_thread = new cygthread (::pty_master_thread, this, "pty_master");
|
||||||
master_ctl = CreateNamedPipe (buf, PIPE_ACCESS_DUPLEX,
|
if (!master_thread)
|
||||||
PIPE_WAIT | PIPE_TYPE_MESSAGE
|
{
|
||||||
| PIPE_READMODE_MESSAGE, 1, 4096, 4096,
|
errstr = "pty master control thread";
|
||||||
0, &sec_all_nih);
|
goto err;
|
||||||
if (master_ctl == INVALID_HANDLE_VALUE)
|
|
||||||
{
|
|
||||||
errstr = "pty master control pipe";
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
master_thread = new cygthread (::pty_master_thread, this, "pty_master");
|
|
||||||
if (!master_thread)
|
|
||||||
{
|
|
||||||
errstr = "pty master control thread";
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
t.from_master = from_master;
|
t.from_master = from_master;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user