import select, errno, sys
# Twisted imports
-from twisted.python import log, threadable, failure
+from twisted.python import log, failure
from twisted.internet import main, posixbase, error
#from twisted.internet.pollreactor import PollReactor, poller
del self.dict[fd]
def poll(self, timeout = None):
- r = self.eApp.poll(timeout, self.dict)
+ try:
+ r = self.eApp.poll(timeout, self.dict)
+ except KeyboardInterrupt:
+ return None
return r
poller = E2SharedPoll()