cvs commit: src/sys/kern kern_exit.c tty.c tty_tty.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Jul 3 10:23:13 PDT 2007


dillon      2007/07/03 10:22:14 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_exit.c tty.c tty_tty.c 
  Log:
  Fix a number of races in the controlling terminal open/close code.
  This does not completely fix issue 715 but it should help reduce the
  problem set.
  
  * Integrate the revoke into ttyclosesession() so it can be issued as part
    of the same locking op.
  * Check for races after acquiring the vnode lock and retry if necessary.
  * Use vhold/vdrop to prevent destruction of the vnode during a possible
    race while we are attempting to obtain the lock.
  
  Reported-by: Thomas Nikolajsen <thomas.nikolajsen at mail.dk> added the comment:
  Dragonfly-bug: <http://bugs.dragonflybsd.org/issue715>
  
  Revision  Changes    Path
  1.83      +6 -16     src/sys/kern/kern_exit.c
  1.42      +42 -9     src/sys/kern/tty.c
  1.19      +46 -25    src/sys/kern/tty_tty.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_exit.c.diff?r1=1.82&r2=1.83&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/tty.c.diff?r1=1.41&r2=1.42&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/tty_tty.c.diff?r1=1.18&r2=1.19&f=u





More information about the Commits mailing list