看板 DFBSD_bugs 關於我們 聯絡資訊
:Alexander Polakov <polachok@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= :umber=20 :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 error. 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 closed. -Matt Matthew Dillon <dillon@backplane.com>