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

Matthew Dillon dillon at
Mon Apr 3 14:34:45 PDT 2006

dillon      2006/04/03 14:32:23 PDT

DragonFly src repository

  Modified files:
    sys/kern             tty.c tty_tty.c 
  Because multiple opens of /dev/tty only issue one actual open to the
  underlying tty, unconditionally use FREAD|FWRITE for the VOP_OPEN/VOP_CLOSE
  calls.  Otherwise the modes may not match up on final close.
  Unconditionally reference the underlying tty when obtaining the lock for a
  read or write of /dev/tty.  If we do not do this then it is possible for
  the session reference to be ripped out from under us while we are obtaining
  the lock and for the vnode to be reused for another purpose without our
  Reported-by: Kyle Butt <kylebutt at xxxxxxxxx>
  Revision  Changes    Path
  1.21      +4 -2      src/sys/kern/tty.c
  1.13      +33 -11    src/sys/kern/tty_tty.c

More information about the Commits mailing list