On Tue, 16 Jun 2020 16:21:14 +0300, Vitaliy Makkoveev wrote:

> https://github.com/apple/darwin-xnu

Note that the poll emulation in xnu was incomplete the last time I
checked.  Granted, that was 10 years ago so it might be better now,
but at the time you couldn't poll much more than sockets.  I got
burned trying to poll tty devices which simply didn't work.  The
select system call doesn't use kqueue as a backend, though.

According the the man pages this is still the case:

BUGS
     The poll() system call currently does not support devices.

 - todd

Reply via email to