From 641654f72a412df1dfe97890bdffbb8b5fa74eb2 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 17 May 2004 15:27:56 +0000 Subject: Change the name "title_mutex" to "tty_mutex" throughout. * tty.h (tty_list::allocate_tty): Turn argument into a boolean. * tty.cc (tty_list::init): Protect entire allocation operation with tty_mutex (formerly title_mutex) to protect against allocation races. --- winsup/cygwin/fhandler_tty.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler_tty.cc') diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 6233971cb..8b98c2dba 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -1157,7 +1157,7 @@ fhandler_pty_master::fhandler_pty_master () int fhandler_pty_master::open (int flags, mode_t) { - int ntty = cygwin_shared->tty.allocate_tty (0); + int ntty = cygwin_shared->tty.allocate_tty (false); if (ntty < 0) return 0; -- cgit v1.2.3