* tty.cc (tty::create_inuse): Eliminate unneeded argument.
* tty.h: Reflect above change. * fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout. Always make inuse inheritable.
This commit is contained in:
@@ -301,13 +301,13 @@ tty::alive (const char *fmt)
|
||||
}
|
||||
|
||||
HANDLE
|
||||
tty::create_inuse (const char *fmt, BOOL inherit)
|
||||
tty::create_inuse (const char *fmt)
|
||||
{
|
||||
HANDLE h;
|
||||
char buf[sizeof (TTY_MASTER_ALIVE) + 16];
|
||||
|
||||
__small_sprintf (buf, fmt, ntty);
|
||||
h = CreateEvent ((inherit ? &sec_all : &sec_all_nih), TRUE, FALSE, buf);
|
||||
h = CreateEvent (&sec_all, TRUE, FALSE, buf);
|
||||
termios_printf ("%s = %p", buf, h);
|
||||
if (!h)
|
||||
termios_printf ("couldn't open inuse event, %E", buf);
|
||||
|
Reference in New Issue
Block a user