Ed Schouten eaaaf1906b 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.
2009-06-15 20:45:51 +00:00
..
2009-06-15 20:40:23 +00:00
2009-06-13 20:21:08 +00:00
2009-06-05 18:44:36 +00:00
2009-06-09 21:29:16 +00:00
2009-06-14 03:32:52 +00:00
2009-05-23 13:23:46 +00:00
2009-06-15 20:40:23 +00:00
2009-05-28 08:18:12 +00:00
2009-05-30 08:53:13 +00:00