Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-01-01 21:51:23 +0300
committerChristopher Faylor <me@cgf.cx>2008-01-01 21:51:23 +0300
commit8528ecbde8282bb640a49b531408cc783f05966a (patch)
tree9103839932b901446ffd5b348a34e1f84099ce20 /winsup/cygwin/tty.cc
parentb918632a2aa389cd788634b3f08a81e66193b016 (diff)
* 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.cc27
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? */