lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Oct 18, 2012 at 11:29:49AM -0400, Sean Conner wrote:
> It was thus said that the Great Jorge once stated:
<snip>>
> > I suppose it's still not pollable (i remember getting busy waits when
> > opening files with the wrong sync mode flag in nixio).
> 
>   A character device is not a regular file, so it should be pollable using
> select(), poll(), epoll(), kqueue(), etc (select() will be on every Unix
> system; poll() on modern Unix systems; epoll() only on Linux; kqueue() on
> BSD).

Should be, I agree. But it's up to the device driver author. Sometimes
writers don't bother making it pollable.