lkml.org 
[lkml]   [2010]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [RFC] notify userspace about time changes
On 08/05/2010 03:22 PM, Kay Sievers wrote:
>
> I think that's really awkward interface, to pass file descriptor
> numbers around and write them to magic sysfs files.
>
> I would very much prefer a file that contains the current time, and
> wakes up possible users with a POLL_ERR on changes caused by some
> other process. That works very well for things like /proc/mounts, is
> easy to get, and does not need a full page of weird instructions to
> get stuff done. :)
>

Okay, what's wrong with having a file descriptor that gets *written to*
on a notification? Why POLL_ERR?

-hpa


\
 
 \ /
  Last update: 2010-08-06 00:39    [W:0.094 / U:2.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site