X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=winsup%2Fcygwin%2Ftty.cc;h=424cf7112c4df6e79557247e1feacae6a1988a6e;hb=9a06eab1197a505f90fd83f1bbdd6e859d2facb0;hp=798984418f2ce69e06cada59f34a11ee179c5808;hpb=a9e152d27adcbc4c2d85ebbee839097adf200373;p=pf3gnuchains%2Fpf3gnuchains4x.git diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 798984418f..424cf7112c 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -325,13 +325,13 @@ tty::init (void) } HANDLE -tty::get_event (const char *fmt, BOOL inherit) +tty::get_event (const char *fmt, BOOL inherit, BOOL manual_reset) { HANDLE hev; char buf[40]; __small_sprintf (buf, fmt, ntty); - if (!(hev = CreateEvent (inherit ? &sec_all : &sec_all_nih, FALSE, FALSE, buf))) + if (!(hev = CreateEvent (inherit ? &sec_all : &sec_all_nih, manual_reset, FALSE, buf))) { termios_printf ("couldn't create %s", buf); set_errno (ENOENT); /* FIXME this can't be the right errno */ @@ -408,7 +408,7 @@ tty::common_init (fhandler_pty_master *ptym) return FALSE; } - if (!(ptym->input_available_event = get_event (INPUT_AVAILABLE_EVENT, FALSE))) + if (!(ptym->input_available_event = get_event (INPUT_AVAILABLE_EVENT, FALSE, TRUE))) return FALSE; char buf[40];