DragonFly commits List (threaded) for 2007-07
DragonFly BSD
DragonFly commits List (threaded) for 2007-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 3 Jul 2007 10:22:14 -0700 (PDT)

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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]