4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-28 10:00:23 +08:00
Christopher Faylor 71d59a926f * dcrt0.cc (dll_crt0_0): Call tty_list::init_session here.
(dll_crt0_1): Reflect renaming from tty_init to tty::init_session.
(do_exit): Reflect moving of tty_terminate into tty_list.
* exceptions.cc (events_init): Move tty_mutex stuff elsewhere.
* fhandler_console.cc (set_console_title): Use lock_ttys class.
* fhandler_termios.cc (fhandler_termios::bg_check): Make debug output more
accurate.
* fhandler_tty.cc (fhandler_tty_slave::open): Reflect move of attach_tty into
tty_list class.  Don't attempt to grab master end of pty if master doesn't
exist.
(fhandler_pty_master::open): Reflect move of allocate_tty into tty_list class.
Use lock_ttys::release to release mutex.  Improve debugging output.
(fhandler_pty_master::setup): Remove if 0'ed block.  Fix argument to
SetNamedPipeHandleState.
* pinfo.cc (_pinfo::set_ctty): Lock ttys before setting sid/pgid.  Improve
debugging.  Add temporary debugging.
* tty.cc (tty_list::init_session): New function.
(tty::init_session): Rename from tty_init.  Reflect move of attach_tty to
tty_list class.
(tty::create_master): Rename from create_tty_master.
(tty_list::attach): Rename from attach_tty.  Reflect renaming of connect_tty to
connect.  Ditto for allocate_tty.
(tty_terminate): Delete.
(tty_list::terminate): Subsume tty_terminate.  Use lock_ttys rather than
manipulating mutex directly.
(tty_list::allocate): Rename from allocate_tty.  Use lock_ttys rather than
manipulating mutex directly.  Don't set sid here since linux apparently doesn't
do this.  Reflect move of create_tty_master into tty.
(lock_ttys::lock_ttys): Define new constructor.
(lock_ttys::release): New function.
* tty.h (tty::exists): Return false immediately if !master_pid.
(tty::set_master_closed): Define new function.
(tty::create_master): Ditto.
(tty::init_session): Ditto.
(tty_list::mutex): New field.
(tty_list::allocate): Define new function.
(tty_list::connect): Ditto.
(tty_list::attach): Ditto.
(tty_list::init_session): Ditto.
(lock_ttys): New class.
(tty_init): Delete declaration.
(tty_terminate): Ditto.
(attach_tty): Ditto.
(create_tty_master): Ditto.
2006-06-03 20:32:07 +00:00
..
2006-05-28 15:50:14 +00:00
2006-05-24 16:59:03 +00:00
2006-03-01 20:20:22 +00:00
2004-12-05 02:30:20 +00:00
2004-01-20 03:11:39 +00:00
2006-01-16 19:52:21 +00:00
2006-05-28 15:50:14 +00:00
2006-05-24 16:59:03 +00:00
2005-09-29 14:28:22 +00:00
2005-03-23 17:11:24 +00:00
2006-05-28 15:50:14 +00:00
2006-03-01 20:20:22 +00:00
2004-05-12 16:21:18 +00:00
2006-05-28 15:50:14 +00:00
2006-02-15 22:11:13 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2005-08-12 02:39:13 +00:00
2006-05-28 15:50:14 +00:00
2005-09-28 19:22:25 +00:00
2006-05-28 15:50:14 +00:00
2006-03-01 20:20:22 +00:00
2004-03-14 05:35:19 +00:00
2004-12-05 02:30:20 +00:00
2005-11-18 17:48:23 +00:00
2005-12-29 20:46:34 +00:00
2006-05-28 15:50:14 +00:00
2004-02-04 22:40:50 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2005-05-02 03:50:11 +00:00
2006-05-28 15:50:14 +00:00
2004-12-27 19:03:56 +00:00
2006-05-28 15:50:14 +00:00
2004-12-27 19:03:56 +00:00
2006-01-02 02:57:54 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2006-05-28 15:50:14 +00:00
2006-02-20 02:06:37 +00:00