tty: the vhangup syscall is racy
commit2cb5998b5f0ccc886fdda3509059eef297b49577
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:40:30 +0000 (13 10:40 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:41 +0000 (13 09:51 -0700)
tree9113731d3f892c2e164bfd05a7cf1a4b1713a619
parent216ba023a96c04e8d3aabf83d5931c35b6e2dbbb
tty: the vhangup syscall is racy

We now have the infrastructure to sort this out but rather than teaching
the syscall tty lock rules we move the hard work into a tty helper

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c
fs/open.c
include/linux/tty.h