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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user