]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
* removing hack to allow threading
authormyers_carpenter <myers_carpenter>
Thu, 13 Mar 2003 02:08:02 +0000 (02:08 +0000)
committermyers_carpenter <myers_carpenter>
Thu, 13 Mar 2003 02:08:02 +0000 (02:08 +0000)
const.py
khashmir.py

index bdd8edbc239ff8657d8e6d64a50e484d25d16f91..b91996a7813ce085fe5940321ae0a74aa9db98e2 100644 (file)
--- 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)
index ac0d2c270112b9bc6a2d09d351c6a7364fb1576f..0c0ed52467896e88ba2e77d6dcc26793ea828ad3 100644 (file)
@@ -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):