Ticket #1581: fix_kqueue.diff
| File fix_kqueue.diff, 0.7 KB (added by rakshasa, 10 months ago) |
|---|
-
libtorrent/src/torrent/poll_kqueue.cc
88 88 void 89 89 PollKQueue::modify(Event* event, unsigned short op, short mask) { 90 90 // Flush the changed filters to the kernel if the buffer is full. 91 if (m_changedEvents == m_table.size())92 flush_events();93 94 91 if (m_changedEvents == m_maxEvents) { 95 92 if (kevent(m_fd, m_changes, m_changedEvents, NULL, 0, NULL) == -1) 96 93 throw internal_error("PollKQueue::modify() error: " + std::string(rak::error_number::current().c_str()));
