blob: e86bb63df7f71330074cff03bf0d177490221645 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
from subprocess import Popen
procs = []
try:
for i in xrange(100):
procs.append(Popen(["python", "client.py"]))
while True: pass
except KeyboardInterrupt:
print "killing"
for p in procs:
p.kill()
|