from twisted.internet.default import SelectReactor ## twistedmatrix.com
-reactor = SelectReactor(installSignalHandlers=0)
+reactor = SelectReactor()
from twisted.internet import main
main.installReactor(reactor)
l.append(a)
thread.start_new_thread(l[0].app.run, ())
for peer in l[1:]:
- peer.app.run()
+ peer.app.run(installSignalHandlers=0)
return l
def test_build_net(quiet=0, peers=24, host='127.0.0.1', pause=0, startport=2001, dbprefix='/tmp/test'):
thread.start_new_thread(l[0].app.run, ())
time.sleep(1)
for peer in l[1:]:
- peer.app.run()
+ peer.app.run(installSignalHandlers=0)
#time.sleep(3)
def spewer(frame, s, ignored):