From: myers_carpenter Date: Thu, 13 Mar 2003 02:08:02 +0000 (+0000) Subject: * removing hack to allow threading X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed8094830c2c2ab4785d10b3d562d609a42741f0;p=quix0rs-apt-p2p.git * removing hack to allow threading --- diff --git a/const.py b/const.py index bdd8edb..b91996a 100644 --- a/const.py +++ b/const.py @@ -3,7 +3,7 @@ from twisted.internet.default import SelectReactor ## twistedmatrix.com -reactor = SelectReactor(installSignalHandlers=0) +reactor = SelectReactor() from twisted.internet import main main.installReactor(reactor) diff --git a/khashmir.py b/khashmir.py index ac0d2c2..0c0ed52 100644 --- a/khashmir.py +++ b/khashmir.py @@ -362,7 +362,7 @@ def test_net(host='127.0.0.1', peers=24, startport=2001, dbprefix='/tmp/test'): 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'): @@ -383,7 +383,7 @@ def test_build_net(quiet=0, peers=24, host='127.0.0.1', pause=0, startport=2001 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):