* tty.h: Reflect above change.
* fhandler_tty.cc: Reflect argument reduction in tty::create_inuse, throughout.
Always make inuse inheritable.
+Sat Sep 1 01:37:13 2001 Christopher Faylor <cgf@cygnus.com>
+
+ * 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.
+
Sat Sep 1 01:10:07 2001 Christopher Faylor <cgf@cygnus.com>
* debug.cc (mark_closed): Rename from debug_mark_closed and make
cygwin_shared->tty[ttynum]->common_init (this);
- inuse = get_ttyp ()->create_inuse (TTY_MASTER_ALIVE, FALSE);
+ inuse = get_ttyp ()->create_inuse (TTY_MASTER_ALIVE);
h = makethread (process_input, NULL, 0, "ttyin");
if (h == NULL)
/* FIXME: Needs a method to eliminate tty races */
{
acquire_output_mutex (500);
- inuse = get_ttyp ()->create_inuse (TTY_SLAVE_ALIVE, TRUE);
+ inuse = get_ttyp ()->create_inuse (TTY_SLAVE_ALIVE);
get_ttyp ()->was_opened = TRUE;
release_output_mutex ();
}
return 0;
cygwin_shared->tty[ttynum]->common_init (this);
- inuse = get_ttyp ()->create_inuse (TTY_MASTER_ALIVE, FALSE);
+ inuse = get_ttyp ()->create_inuse (TTY_MASTER_ALIVE);
set_flags (flags);
set_open_status ();
}
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);
BOOL was_opened; /* True if opened at least once. */
void init ();
- HANDLE create_inuse (const char *, BOOL);
+ HANDLE create_inuse (const char *);
BOOL common_init (fhandler_pty_master *);
BOOL alive (const char *fmt);
BOOL slave_alive ();