Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jun 2009 20:45:51 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_exit.c tty.c
Message-ID:  <200906152046.n5FKk6TI090260@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-06-15 20:45:51 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_exit.c tty.c 
  Log:
  SVN rev 194264 on 2009-06-15 20:45:51Z by ed
  
  Perform some more cleanups to in-kernel session handling.
  
  The code that was in place in exit1() was mainly based on code from the
  old TTY layer. The main reason behind this, was because at one moment I
  ran a system that had two TTY layers in place at the same time. It is
  now sufficient to do the following:
  
  - Remove references from the session structure to the TTY vnode and the
    session leader.
  
  - If we have a controlling TTY and the session used by the TTY is equal
    to our session, send the SIGHUP.
  
  - If we have a vnode to the controlling TTY which has not been revoked,
    revoke it.
  
  While there, change sys/kern/tty.c to use s_ttyp in the comparison
  instead of s_ttyvp. It should not make any difference, because s_ttyvp
  can only become null when the session leader already left, but it's
  nicer to compare against the proper value.
  
  Revision  Changes    Path
  1.326     +31 -36    src/sys/kern/kern_exit.c
  1.323     +1 -1      src/sys/kern/tty.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906152046.n5FKk6TI090260>