]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix minor TTY API inconsistency.
authored <ed@FreeBSD.org>
Tue, 16 Sep 2008 14:57:23 +0000 (14:57 +0000)
committered <ed@FreeBSD.org>
Tue, 16 Sep 2008 14:57:23 +0000 (14:57 +0000)
commit0f8f4f624b9601d63a980ccf5c07f3e3109f98cd
tree3189f895c04a095e22df6f0c2d9b07814761a05f
parentf145085b0dbbd1162ad9ad4972700926cb81df54
Fix minor TTY API inconsistency.

Unlike tty_rel_gone() and tty_rel_sess(), the tty_rel_pgrp() routine
does not unlock the TTY. I once had the idea to make the code call
tty_rel_pgrp() and tty_rel_sess(), picking up the TTY lock once. This
turned out a little harder than I expected, so this is how it works now.

It's a lot easier if we just let tty_rel_pgrp() unlock the TTY, because
the other routines do this anyway.
sys/kern/kern_proc.c
sys/kern/tty.c