From: Peter Hurley Date: Wed, 6 Mar 2013 12:20:56 +0000 (-0500) Subject: tty: Signal foreground group processes in hangup X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~136^2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f91e2590410bd992e3f065d17c55329bdaa51b1d;p=pandora-kernel.git tty: Signal foreground group processes in hangup When the session leader is exiting, signal the foreground group processes as part of the hangup sequence, instead of after the hangup is complete. This prepares for hanging up the line discipline _after_ signalling processes which may be blocking on ldisc i/o. Parameterize __tty_hangup() to distinguish between when the session leader is exiting and all other hangups; signal the foreground group after signalling the session leader and its process group, which preserves the original signal order. Signed-off-by: Peter Hurley Acked-by: Jiri Slaby Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed