git: kernel - Hack fix for tty last-close bug

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Mar 12 18:47:18 PDT 2014


commit 9724870095276ba9d57c5c1ee82c7990749b2357
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Mar 12 18:44:50 2014 -0700

    kernel - Hack fix for tty last-close bug
    
    * If a tty is owned by one devfs mount and programs are run which open/close
      the tty in a different devfs mount, the last-close test will get confused
      and believe that the last close in the second mount is the last close on
      the device, when the first mount still has it open.
    
    * Temporarily hack a fix which is not SMP safe to deal with the situation.
      A proper fix requires us to put a struct lock and an opencount field in
      the struct cdev itself and use that instead of v_opencount.
    
    * Fixes issue with 'screen' exiting when sub-processes are run inside a
      chroot (with their own /dev mount).
    
    Reported-by: marino

Summary of changes:
 sys/vfs/devfs/devfs_vnops.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9724870095276ba9d57c5c1ee82c7990749b2357


-- 
DragonFly BSD source repository


More information about the Commits mailing list