mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
* fhandler_tty.cc (fhandler_tty_slave::open): Don't protect input/output
handles since they are not properly manipulated later. * tty.cc (tty::make_pipes): Ditto.
This commit is contained in:
parent
de3387b304
commit
02fa38279f
@ -1,3 +1,9 @@
|
|||||||
|
2002-09-08 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* fhandler_tty.cc (fhandler_tty_slave::open): Don't protect
|
||||||
|
input/output handles since they are not properly manipulated later.
|
||||||
|
* tty.cc (tty::make_pipes): Ditto.
|
||||||
|
|
||||||
2002-09-06 Christopher Faylor <cgf@redhat.com>
|
2002-09-06 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* winsup.h (_WIN32_WINNT): Protect.
|
* winsup.h (_WIN32_WINNT): Protect.
|
||||||
|
@ -532,9 +532,7 @@ fhandler_tty_slave::open (path_conv *, int flags, mode_t)
|
|||||||
get_ttyp ()->to_master, to_master_local);
|
get_ttyp ()->to_master, to_master_local);
|
||||||
|
|
||||||
set_io_handle (from_master_local);
|
set_io_handle (from_master_local);
|
||||||
ProtectHandle1INH (from_master_local, from_pty);
|
|
||||||
set_output_handle (to_master_local);
|
set_output_handle (to_master_local);
|
||||||
ProtectHandle1INH (to_master_local, to_pty);
|
|
||||||
|
|
||||||
set_open_status ();
|
set_open_status ();
|
||||||
termios_printf ("tty%d opened", ttynum);
|
termios_printf ("tty%d opened", ttynum);
|
||||||
|
@ -367,14 +367,14 @@ tty::make_pipes (fhandler_pty_master *ptym)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ProtectHandle1INH (to_slave, to_pty);
|
// ProtectHandle1INH (to_slave, to_pty);
|
||||||
if (CreatePipe (&from_slave, &to_master, &sec_all, 0) == FALSE)
|
if (CreatePipe (&from_slave, &to_master, &sec_all, 0) == FALSE)
|
||||||
{
|
{
|
||||||
termios_printf ("can't create output pipe");
|
termios_printf ("can't create output pipe");
|
||||||
set_errno (ENOENT);
|
set_errno (ENOENT);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
ProtectHandle1INH (from_slave, from_pty);
|
// ProtectHandle1INH (from_slave, from_pty);
|
||||||
termios_printf ("tty%d from_slave %p, to_slave %p", ntty, from_slave,
|
termios_printf ("tty%d from_slave %p, to_slave %p", ntty, from_slave,
|
||||||
to_slave);
|
to_slave);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user