* fhandler.h (class fhandler_pty_master): Add master_thread member.

* fhandler_tty.cc (fhandler_pty_master::close): Properly detach from
	master thread.
	(fhandler_pty_master::setup): Store cygthread pointer of pty master
	control thread in master_thread.  Don't zap thread handle.
This commit is contained in:
Corinna Vinschen
2010-05-26 13:10:55 +00:00
parent 60321a0733
commit 403ab0c013
3 changed files with 12 additions and 4 deletions

View File

@ -1125,6 +1125,7 @@ class fhandler_pty_master: public fhandler_tty_common
{
int pktmode; // non-zero if pty in a packet mode.
HANDLE master_ctl; // Control socket for handle duplication
cygthread *master_thread; // Master control thread
public:
int need_nl; // Next read should start with \n