* 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:
Christopher Faylor
2001-09-01 05:38:46 +00:00
parent e62ac9e869
commit 2496a3637f
4 changed files with 13 additions and 6 deletions

View File

@@ -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);