* fhandler_tty.cc (fhandler_tty_slave::open): Don't expect that
service applications have no window station attached.
This commit is contained in:
parent
d55950ba3a
commit
0f46c31745
|
@ -1,3 +1,8 @@
|
||||||
|
2005-11-17 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_tty.cc (fhandler_tty_slave::open): Don't expect that
|
||||||
|
service applications have no window station attached.
|
||||||
|
|
||||||
2005-11-16 Christopher Faylor <cgf@timesys.com>
|
2005-11-16 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* times.cc (hires_ms::prime): Don't escalate the priority.
|
* times.cc (hires_ms::prime): Don't escalate the priority.
|
||||||
|
|
|
@ -577,9 +577,11 @@ fhandler_tty_slave::open (int flags, mode_t)
|
||||||
set_open_status ();
|
set_open_status ();
|
||||||
if (cygheap->manage_console_count ("fhandler_tty_slave::open", 1) == 1
|
if (cygheap->manage_console_count ("fhandler_tty_slave::open", 1) == 1
|
||||||
&& !GetConsoleCP () && !output_done_event
|
&& !GetConsoleCP () && !output_done_event
|
||||||
&& wincap.pty_needs_alloc_console () && !GetProcessWindowStation ())
|
&& wincap.pty_needs_alloc_console ())
|
||||||
{
|
{
|
||||||
BOOL b;
|
BOOL b;
|
||||||
|
if (!GetProcessWindowStation ())
|
||||||
|
{
|
||||||
HWINSTA h = CreateWindowStation (NULL, 0, GENERIC_READ | GENERIC_WRITE, &sec_none_nih);
|
HWINSTA h = CreateWindowStation (NULL, 0, GENERIC_READ | GENERIC_WRITE, &sec_none_nih);
|
||||||
termios_printf ("CreateWindowStation %p, %E", h);
|
termios_printf ("CreateWindowStation %p, %E", h);
|
||||||
if (h)
|
if (h)
|
||||||
|
@ -587,6 +589,7 @@ fhandler_tty_slave::open (int flags, mode_t)
|
||||||
b = SetProcessWindowStation (h);
|
b = SetProcessWindowStation (h);
|
||||||
termios_printf ("SetProcessWindowStation %d, %E", b);
|
termios_printf ("SetProcessWindowStation %d, %E", b);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
b = AllocConsole (); // will cause flashing if workstation
|
b = AllocConsole (); // will cause flashing if workstation
|
||||||
// stuff fails
|
// stuff fails
|
||||||
termios_printf ("%d = AllocConsole (), %E", b);
|
termios_printf ("%d = AllocConsole (), %E", b);
|
||||||
|
|
Loading…
Reference in New Issue