git: kernel - More pty fixes

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 4 21:31:00 PDT 2010


commit f5f1bbd4a15e29ccf3c5baafe1eaf2a25f660e03
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 4 21:27:08 2010 -0700

    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)

Summary of changes:
 sys/kern/tty.c     |    5 ++-
 sys/kern/tty_pty.c |  107 ++++++++++++++++++++++++++++++++++-----------------
 sys/sys/tty.h      |    1 +
 3 files changed, 76 insertions(+), 37 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f5f1bbd4a15e29ccf3c5baafe1eaf2a25f660e03


-- 
DragonFly BSD source repository





More information about the Commits mailing list