On Wed, 9 Feb 2000 kernel@kvack.org wrote:
> + if (capable(CAP_SYS_TTY_CONFIG)) {
> + if (current->tty)
> + tty_vhangup(current->tty);
> + return 0;
> + }
> + return -EPERM;
> }
Hi Ben,
Yes, this looks much better but I think we can drop the if(current->tty)
check as well since the underlying routine handles it just fine, which is
what I sent to Linus a few minutes ago.
Regards,
Tigran.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:17 EST