From: Eric W. Biederman Date: Mon, 12 Feb 2007 08:52:52 +0000 (-0800) Subject: [PATCH] tty: clarify disassociate_ctty X-Git-Tag: v2.6.21-rc1~274^2~155 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=680a96710041c3c25464b5e093b80ca43cb94f52;p=pandora-kernel.git [PATCH] tty: clarify disassociate_ctty The code to look at tty_old_pgrp and send SIGHUP and SIGCONT when it is present only executes when disassociate_ctty is called from do_exit. Make this clear by adding an explict on_exit check, and explicitly setting tty_old_pgrp to 0. In addition fix the locking by reading tty_old_pgrp under the siglock. Signed-off-by: Eric W. Biederman Cc: Alan Cox Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed