use kqueue on FreeBSD

This commit is contained in:
Tobias Oberstein
2011-11-05 12:26:50 +01:00
parent 0bf53a8917
commit 758ddb8a3b

View File

@@ -16,6 +16,11 @@
##
###############################################################################
import sys
if sys.platform in ['freebsd8']:
from twisted.internet import kqreactor
kqreactor.install()
import sys, json
from twisted.python import log
from twisted.internet import reactor
@@ -39,4 +44,5 @@ if __name__ == '__main__':
web = Site(webdir)
reactor.listenTCP(spec.get("webport", 9090), web)
log.msg("Using Twisted reactor class %s" % str(reactor.__class__))
reactor.run()