Index: tty.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/tty.cc,v retrieving revision 1.35 diff -u -3 -p -u -p -r1.35 tty.cc --- tty.cc 5 Jun 2002 04:01:43 -0000 1.35 +++ tty.cc 30 Jun 2002 12:42:04 -0000 @@ -216,8 +216,11 @@ tty_list::allocate_tty (int with_console __small_sprintf (buf, "cygwin.find.console.%d", myself->pid); SetConsoleTitle (buf); - Sleep (40); - console = FindWindow (NULL, buf); + for (int times = 0; times < 25 && console == NULL; times++) + { + Sleep (40); + console = FindWindow (NULL, buf); + } SetConsoleTitle (oldtitle); Sleep (40); ReleaseMutex (title_mutex);