git: kernel - Fix tty session panic
Matthew Dillon
dillon at crater.dragonflybsd.org
Thu Aug 26 10:52:14 PDT 2010
commit 94a6eea8b2dcb172e2c46bb304dd0c23780a6406
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Thu Aug 26 10:50:00 2010 -0700
kernel - Fix tty session panic
* Ref-count the session->s_ttyp references to ttys and do not
destroy a tty unless it is zero.
* This should fix remaining panics in this area. My last attempt
to fix it (testing tp->t_session) did not work due to the possibility
of the tty being half-closed.
Summary of changes:
sys/kern/kern_proc.c | 6 ++++++
sys/kern/tty.c | 21 ++++++++++++++++++++-
sys/kern/tty_pty.c | 4 ++--
3 files changed, 28 insertions(+), 3 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/94a6eea8b2dcb172e2c46bb304dd0c23780a6406
--
DragonFly BSD source repository
More information about the Commits
mailing list