aboutsummaryrefslogtreecommitdiffstats
path: root/fs/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/open.c')
-rw-r--r--fs/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/open.c b/fs/open.c
index 89e0c237a636..3b56192816ca 100644
--- a/fs/open.c
+++ b/fs/open.c
@@ -1087,6 +1087,7 @@ EXPORT_SYMBOL(sys_close);
1087asmlinkage long sys_vhangup(void) 1087asmlinkage long sys_vhangup(void)
1088{ 1088{
1089 if (capable(CAP_SYS_TTY_CONFIG)) { 1089 if (capable(CAP_SYS_TTY_CONFIG)) {
1090 /* XXX: this needs locking */
1090 tty_vhangup(current->signal->tty); 1091 tty_vhangup(current->signal->tty);
1091 return 0; 1092 return 0;
1092 } 1093 }