lkml.org 
[lkml]   [2011]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: tty idle time and hooking inode_ops from a chardev
On 12/16/2011 12:57 PM, Greg KH wrote:
> Don't worry about it, as it's not really an important issue at all? :)

That's why it has been broken for years; because nobody cares enough
about it to fix it, but that kind of thing irks me.

> It seems that your userspace programs aren't properly measuring the
> correct thing here, it's not that the kernel is doing something wrong,
> right?

I thought so at first, but it appears that the tty layer was originally
written specifically to work this way.

> And atime on a character node is pretty undefined, isn't it?

Is it? I would have thought so but after looking at all of this code,
it looks like it is one of those things that has just been around for
decades, but nobody knows about, kind of like FIONREAD.

I wonder if that's how who has always worked going back to AT&T Unix.
If it is, then I'd like to stick with it ( but fix it ) rather than say,
add an ioctl to read the idle time and change coreutils to use that instead.


\
 
 \ /
  Last update: 2011-12-16 19:25    [W:1.066 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site