summaryrefslogtreecommitdiff
path: root/server/rush.py
diff options
context:
space:
mode:
authorMyth Yang <yangguangpkpk@gmail.com>2013-08-23 21:34:02 +0800
committerMyth Yang <yangguangpkpk@gmail.com>2013-08-23 21:34:02 +0800
commit1d128767e6a7adf19acfca62b7d204d14512a762 (patch)
tree02d18bbddab66feca23dc2ab2baf8a692815639b /server/rush.py
parentbeebd632abfed29801e6b8393132929710ff03d7 (diff)
parent9f239db4b690e648db9c3a2df6b0ee7f26edb0c2 (diff)
Merge branch 'master' of https://github.com/Determinant/piztor
Diffstat (limited to 'server/rush.py')
-rw-r--r--server/rush.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/rush.py b/server/rush.py
index e86bb63..f01804c 100644
--- a/server/rush.py
+++ b/server/rush.py
@@ -2,9 +2,11 @@ from subprocess import Popen
procs = []
try:
- for i in xrange(100):
- procs.append(Popen(["python", "client.py"]))
- while True: pass
+ for i in xrange(10):
+ p = Popen(["python", "client.py", str(i)])
+ procs.append(p)
+ #p.wait()
+ print "done"
except KeyboardInterrupt:
print "killing"