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

Matthew Dillon dillon at
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 
  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> added the comment:
  Dragonfly-bug: <>
  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

More information about the Commits mailing list