lkml.org 
[lkml]   [2000]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.055 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site