mq on kqueue broken after upgrade to FreeBSD 11

Konstantin Belousov kostikbel at gmail.com
Sun Oct 2 16:37:15 UTC 2016


On Sun, Oct 02, 2016 at 09:11:12AM -0500, Lewis Donzis wrote:
> Technically, neither are mqueues.  The only thing "the int" can be used for is select(), poll(), and kevent().  You can???t (or at least shouldn???t) pass it to any of the other system calls that accept fds.

Technically, mqueues are file descriptors. FWIW, allowed operations (in
the sense of doing something instead of returning errors) are, besides
polling, also stat, chmod, chown. They are enumerable as normal elements
of the process' file descriptor table, inherited on fork, and you can
and should close(2) them.



More information about the freebsd-arch mailing list