* fhandler_tty.cc (fhandler_tty::open): Close newly created window

station after switching to original window station.
This commit is contained in:
Corinna Vinschen
2005-12-13 09:07:12 +00:00
parent 82f423291b
commit 4c848934fe
2 changed files with 10 additions and 2 deletions

View File

@ -605,8 +605,11 @@ fhandler_tty_slave::open (int flags, mode_t)
}
b = AllocConsole (); // will cause flashing if workstation
// stuff fails
if (horig && h != horig)
SetProcessWindowStation (horig);
if (horig && h && h != horig)
{
SetProcessWindowStation (horig);
CloseHandle (h);
}
termios_printf ("%d = AllocConsole (), %E", b);
if (b)
init_console_handler (TRUE);