lkml.org 
[lkml]   [2009]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] sysfs poll should keep the poll rule of normal regular file.
On Thursday April 9, kosaki.motohiro@jp.fujitsu.com wrote:
> > On Wednesday April 8, kosaki.motohiro@jp.fujitsu.com wrote:
> > > Because Ruby (the scripting language) VM assume select system-call against regular file don't block.
> > > (POSIX gurantee it.)
> > > But sysfs_poll() don't keep this rule although sysfs file can read and write always.
> >
> > It would be nice to include a reference to where POSIX (or SUS)
> > guarantees it - though I suspect you are right.
>
> Oh, very good opinion.
>
> following explanation is better?
>
> poll is requireed "Regular files shall always poll TRUE for reading and
> writing." by SUSv3.
> see http://www.opengroup.org/onlinepubs/009695399/functions/poll.html
>

Yes, that's excellent, thanks.

NeilBrown


\
 
 \ /
  Last update: 2009-04-09 08:09    [W:0.059 / U:0.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site