/* This routine simulates a hangup on the tty, to arrange that users are given clean terminals at login time.  */
SYSCALL_DEFINE0(vhangup)
/* This routine simulates a hangup on the tty, to arrange that users are given clean terminals at login time.  */
SYSCALL_DEFINE0(vhangup)
{
	if (capable(CAP_SYS_TTY_CONFIG)) {
		tty_vhangup_self();
		return 0;
	}
	return -EPERM;
}