[PATCH] do_SAK: don't depend on session ID 0
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 29 Mar 2006 00:11:02 +0000 (16:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 29 Mar 2006 02:36:40 +0000 (18:36 -0800)
commit652486fb84a07ed750f1c11639518f55808bf555
tree5fb6963a68dd63591f247d9bfc9f9e2d10468fb9
parentf96a795d4f6a8a13abe4b0d3c5d1c28ea8d7ce4b
[PATCH] do_SAK: don't depend on session ID 0

I'm not really certain what the thinking was but the code obviously wanted to
walk processes other than just those in it's session, for purposes of do_SAK.
Just walking those tasks that don't have a session assigned sounds at the very
least incomplete.

So modify the code to kill everything in the session and anything else that
might have the tty open.  Hopefully this helps if the do_SAK functionality is
ever finished.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tty_io.c