* fhandler_tty.cc (fhandler_tty::open): Close newly created window
station after switching to original window station.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | ||||
| 2005-12-13  Corinna Vinschen  <corinna@vinschen.de> | ||||
|  | ||||
| 	* fhandler_tty.cc (fhandler_tty::open): Close newly created window | ||||
| 	station after switching to original window station. | ||||
|  | ||||
| 2005-12-13  Christopher Faylor  <cgf@timesys.com> | ||||
|  | ||||
| 	* fhandler_tty.cc (fhandler_tty::open): Add a comment. | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user