summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-08-22 09:16:05 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2008-08-22 09:16:05 +1000
commit128b84b0cbe04ec2465f28462c4a0a3d36eca622 (patch)
treeaa884a8a076fd386a39215f88f1f377c743d9583 /fs
parent1cdfab9505b2043740c244f78c032fd2f3891421 (diff)
tty-fix-vhangup
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
Diffstat (limited to 'fs')
-rw-r--r--fs/open.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/open.c b/fs/open.c
index 07da9359481c..5596049863bf 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -1141,8 +1141,7 @@ EXPORT_SYMBOL(sys_close);
asmlinkage long sys_vhangup(void)
{
if (capable(CAP_SYS_TTY_CONFIG)) {
- /* XXX: this needs locking */
- tty_vhangup(current->signal->tty);
+ tty_vhangup_self();
return 0;
}
return -EPERM;