summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-20 17:32:12 +0000
committerChristopher Faylor <me@cgf.cx>2004-05-20 17:32:12 +0000
commitbfa768973cc0b0d0cdc74ccb09b494e24016a4a1 (patch)
tree9a61887b62b85d04d31dc1a1d5a59aa5871daaf2 /winsup/cygwin/fhandler_tty.cc
parente5a32b9a9639a1b3e203a27a0681a3a8ab07e5d6 (diff)
downloadcygnal-bfa768973cc0b0d0cdc74ccb09b494e24016a4a1.tar.gz
cygnal-bfa768973cc0b0d0cdc74ccb09b494e24016a4a1.tar.bz2
cygnal-bfa768973cc0b0d0cdc74ccb09b494e24016a4a1.zip
* tty.cc (tty_list::allocate_tty): Leave tty_mutex armed on successful return
from !with_console * fhandler_tty.cc (fhandler_pty_master::open): Release tty_mutex here after all initialization is done.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 8b98c2dba..bf17e8331 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -1164,6 +1164,7 @@ fhandler_pty_master::open (int flags, mode_t)
slave = *ttys_dev;
slave.setunit (ntty);
cygwin_shared->tty[ntty]->common_init (this);
+ ReleaseMutex (tty_mutex); // lock was set in allocate_tty
inuse = get_ttyp ()->create_inuse (TTY_MASTER_ALIVE);
set_flags ((flags & ~O_TEXT) | O_BINARY);
set_open_status ();