Damn I missed that.

To my defense, this bug should be also mentioned in the POLLNVAL section.
As it stands now, it looks like the only reason for POLLNVAL is a closed
file descriptor.

Sorry and thanks.


On Tue, Jun 18, 2013 at 6:09 PM, Oleg Goldshmidt <p...@goldshmidt.org> wrote:

> Elazar Leibovich <elaz...@gmail.com> writes:
>
> > Try to open /dev/null, and then to poll the file descriptor. Neither
> > in the man page nor in the standard I see anything preventing you to
> > poll on /dev/null, yet, it does not work on Mac OS X. You get a
> > POLLNVAL.
>
> From
> http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man2/poll.2.html
> :
>
> BUGS
>      The poll() system call currently does not support devices.
>
> Your code works fine on Linux, but I suppose you know that.
>
> --
> Oleg Goldshmidt | p...@goldshmidt.org
>
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to