Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 242a2a846..7e0940306 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -73,8 +73,10 @@ tty_init (void)
void __stdcall
create_tty_master (int ttynum)
{
+ device ttym = *ttym_dev;
+ ttym.setunit (ttynum); /* CGF FIXME device */
tty_master = (fhandler_tty_master *)
- cygheap->fdtab.build_fhandler (-1, FH_TTYM, "/dev/ttym", NULL, ttynum);
+ cygheap->fdtab.build_fhandler (-1, ttym, "/dev/ttym", NULL);
if (tty_master->init (ttynum))
api_fatal ("Can't create master tty");
else
@@ -417,7 +419,7 @@ tty::common_init (fhandler_pty_master *ptym)
/* Create synchronisation events */
- if (ptym->get_device () != FH_TTYM)
+ if (ptym->get_major () != DEV_TTYM_MAJOR)
{
ptym->output_done_event = ptym->ioctl_done_event =
ptym->ioctl_request_event = NULL;