Messages in this thread | | | From | Neil Brown <> | Date | Thu, 9 Apr 2009 16:05:55 +1000 | Subject | Re: [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
| |