[issue1513] Postfix kqueue(2) support broken

Matthew Dillon dillon at apollo.backplane.com
Thu Sep 17 09:30:50 PDT 2009

:Alexander Polakov <polachok at gmail.com> added the comment:
:>If it is a file descriptor limit it will be a different issue than
:>the postfix kqueue failure.
:It works fine with kqueue disabled ("using select polling") with the same n=
:of torrents. So select() is not affected by the file descriptor limit?

    No, but select() probably wouldn't return EBADF if a bad descriptor
    were specified in the bitmap.

    Did using kqueue w/rtorrent work in an earlier kernel?  It still feels
    like it's a different problem but the only way to really tell would be
    to instrument the kernel with some kprintf()'s for kevent() to track
    down which element in the event array being passed is causing the

    The kevent call is being called with a change list but no event
    return list so any error in the change list will cause the call to
    fail with that error (instead of recording it in a returned event
    list).  Presumably some descriptor within that event list has been

					Matthew Dillon 
					<dillon at backplane.com>

More information about the Bugs mailing list