diff options
author | Christopher Faylor <me@cgf.cx> | 2011-04-17 23:56:25 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-04-17 23:56:25 +0400 |
commit | f4c1f003e3aaf8313fa86f511f72470dae984910 (patch) | |
tree | f19001f6c7e4199eed82251a7de73cfe12521fcc /winsup/cygwin/pinfo.cc | |
parent | 0fbf39cc9f68159495142339408054d68b2bb7b4 (diff) |
* cygheap.h (init_cygheap::ctty): Use base class so that console can join in
the fun.
* dtable.cc (dtable::stdio_init): Remove special-case call to set_console_ctty
().
* exceptions.cc (sigpacket::process): Conditionally flush terminal input on
certain signals.
* fhandler.h (fhandler_console::get_tty_stuff): Make non-static.
(fhandler_termios::get_ttyp): Move here.
(fhandler_termios::sigflush): Declare.
(fhandler_tty_common::get_ttyp): Delete.
* fhandler_console.cc (fhandler_console::get_tty_stuff): Pass this as "arch"
argument.
(set_console_ctty): Delete.
(tty_list::get_tty): Just return pointer to shared console region, delaying
get_tty_stuff until open().
(fhandler_console::init): Treat NULL handle as signifying that console should
be opened with O_NOCTTY flag. Rename handle argument to the more common 'h'.
* fhandler_termios.cc (fhandler_termios::sigflush): Define.
* fhandler_tty.cc (handler_tty_master::init_console): Pass NULL as first
argument to fhandler_console::init.
* pinfo.cc (_pinfo::set_ctty): Change third parameter to fhandler_termios *.
Add extra debugging.
* pinfo.h (_pinfo::set_ctty): Change third parameter to fhandler_termios *.
* sigproc.cc (handle_sigsuspend): Don't special-case non-main threads.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 03f85e548..772dda549 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -371,7 +371,7 @@ _pinfo::_ctty (char *buf) } void -_pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch) +_pinfo::set_ctty (tty_min *tc, int flags, fhandler_termios *arch) { debug_printf ("old %s", __ctty ()); if ((ctty < 0 || ctty == tc->ntty) && !(flags & O_NOCTTY)) @@ -420,6 +420,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch) } } } + debug_printf ("cygheap->ctty now %p, arch %p", cygheap->ctty, arch); } /* Test to determine if a process really exists and is processing signals. |