Messages in this thread | | | Date | Thu, 10 Feb 2000 01:21:05 -0800 (PST) | From | Tigran Aivazian <> | Subject | Re: [patch-2.3.43-pre5] optimized vhangup(2) |
| |
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/
| |