cvs commit: src/sys/kern tty.c

Ed Schouten ed at FreeBSD.org
Wed Sep 24 11:16:19 UTC 2008


ed          2008-09-24 11:16:09 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             tty.c 
  Log:
  SVN rev 183324 on 2008-09-24 11:16:09Z by ed
  
  Fix a crash when calling tty_rel_free() while draining during closure.
  
  Yesterday I got two reports of potential crashes, related to TTY
  deallocation during device closure. When a thread is in TF_OPENCLOSE,
  draining its output upon closure, we should not allow calls to
  tty_rel_free() to happen at the same time. This could cause the TTY to
  be torn down twice.
  
  PR:             kern/127561
  Reported by:    KOIE Hidetaka <koie suri co jp>
  Discussed with: thompsa
  
  Revision  Changes    Path
  1.291     +2 -2      src/sys/kern/tty.c


More information about the cvs-src mailing list