diff options
author | Christopher Faylor <me@cgf.cx> | 2008-01-01 18:51:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-01-01 18:51:23 +0000 |
commit | 8528ecbde8282bb640a49b531408cc783f05966a (patch) | |
tree | 9103839932b901446ffd5b348a34e1f84099ce20 /winsup/cygwin/tty.cc | |
parent | b918632a2aa389cd788634b3f08a81e66193b016 (diff) | |
download | cygnal-8528ecbde8282bb640a49b531408cc783f05966a.tar.gz cygnal-8528ecbde8282bb640a49b531408cc783f05966a.tar.bz2 cygnal-8528ecbde8282bb640a49b531408cc783f05966a.zip |
* newsym: First stab at understanding data as well as functions.
* pipe.cc (fhandler_pipe::init): Move more intelligence here.
(fhandler_pipe::create): Simplify based on above change.
* tty.cc (tty_list::allocate): Remove non-NT code.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 9793c8cc7..f33530940 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -227,31 +227,8 @@ tty_list::allocate (bool with_console) console = NULL; else if (!(console = GetConsoleWindow ())) { - char oldtitle[TITLESIZE]; - - if (!GetConsoleTitle (oldtitle, TITLESIZE)) - { - termios_printf ("Can't read console title"); - goto out; - } - - char buf[40]; - - __small_sprintf (buf, "cygwin.find.console.%d", myself->pid); - SetConsoleTitle (buf); - for (int times = 0; times < 25; times++) - { - Sleep (10); - if ((console = FindWindow (NULL, buf))) - break; - } - SetConsoleTitle (oldtitle); - Sleep (40); - if (console == NULL) - { - termios_printf ("Can't find console window"); - goto out; - } + termios_printf ("Can't find console window"); + goto out; } /* Is a tty allocated for console? */ |