tty: add TIOCVHANGUP to allow clean tty shutdown of all ttys
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 17 Feb 2011 17:39:28 +0000 (18:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:16:30 +0000 (14:16 -0800)
This is useful for system management software so that it can kick
off things like gettys and everything that's started from a tty,
before we reuse it from/for something else or shut it down.

Without this ioctl it would have to temporarily become the owner of
the tty, then call vhangup() and then give it up again.

Cc: Lennart Poettering <lennart@poettering.net>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found