cvs commit: src/sys/kern tty.c

Doug White dwhite at FreeBSD.org
Wed May 4 20:49:03 PDT 2005


dwhite      2005-05-05 03:48:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/kern             tty.c 
  Log:
  Commit a workaround to panics in ttwwakeup() during open and closes of the
  terminal sharing /dev/console. Peek at tty structs passing through ttymalloc()
  and pass them to ttyrel() if they'd get reaped due to the refcount dropping
  to 0. Also loosen up the refcount check in ttyrel() to account for
  refcounting problems caused by the incestuous relationship. I left the
  KASSERT alone in case people want to look into the underlying issue.
  
  Reaping dying tty structs helps keep stale data from growing in the knote
  lists, which eventually get tripped over, causing the panic.
  
  This change does not apply to -CURRENT due to differences in tty handling.
  
  MFC after:      3 days
  
  Revision   Changes    Path
  1.228.2.4  +12 -2     src/sys/kern/tty.c


More information about the cvs-src mailing list