mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Fix my massacre of kqueue, filters may not be or'd.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10561 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
14539c29d6
commit
1aea2798cc
@ -116,7 +116,8 @@ void KQueueEngine::WantWrite(EventHandler* eh)
|
||||
* the original setting rather than adding it twice. See man kqueue.
|
||||
*/
|
||||
struct kevent ke;
|
||||
EV_SET(&ke, eh->GetFd(), EVFILT_READ | EVFILT_WRITE, EV_ADD | EV_ONESHOT, 0, 0, NULL);
|
||||
EV_SET(&ke, eh->GetFd(), EVFILT_READ, EV_ADD | EV_ONESHOT, 0, 0, NULL);
|
||||
EV_SET(&ke, eh->GetFd(), EVFILT_WRITE, EV_ADD | EV_ONESHOT, 0, 0, NULL);
|
||||
kevent(EngineHandle, &ke, 1, 0, 0, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user