summaryrefslogtreecommitdiff
path: root/misc/server/rush.py
blob: f01804c8a8b1e1a179e845b606ecf507ed45414b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from subprocess import Popen
procs = []

try:
    for i in xrange(10):
        p = Popen(["python", "client.py", str(i)])
        procs.append(p)
        #p.wait()
    print "done"

except KeyboardInterrupt:
    print "killing"
    for p in procs:
        p.kill()