diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-01 09:38:46 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-01 09:38:46 +0400 |
commit | 2496a3637f4bcb5617c661ef33e3e1a1cc5e93c1 (patch) | |
tree | f60a499065ac6ee58ef4add60772ff55d4750a2b /winsup/cygwin/tty.cc | |
parent | e62ac9e86925090d0727605b33a1628d01b86158 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index ee31b193b..613aa2969 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -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); |