kernel - More pty fixes
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 5 Sep 2010 04:27:08 +0000 (21:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 5 Sep 2010 04:27:08 +0000 (21:27 -0700)
commitf5f1bbd4a15e29ccf3c5baafe1eaf2a25f660e03
tree337966e639b868932b9c6b69eeb8ce73e4c5cc6c
parentad8b1a17d50a3731619b491ad2f79e7d69a7d76b
kernel - More pty fixes

* Allow the pts to be closed and reopened while the ptc is held open
  (xterm issues a revoke + open).  This fixes xterm.

* Add a flag to differentiate between a slave not yet initially opened
  and a slave which has been closed, so ptc reads and the kqfilter
  can properly return EOF (tmux).

* Remove pt_flags2 and fold its flags into pt_flags.

* Create a shim to track ttyunhold()'s for session releases and release
  the underlying pts (for screen).

Reported-by: josepht (xterm issue)
sys/kern/tty.c
sys/kern/tty_pty.c
sys/sys/tty.h