diff options
author | Teddy <[email protected]> | 2013-08-23 11:10:58 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-23 11:10:58 +0800 |
commit | a44601d57a7b96d69848d5bdd2fa6f3e442d0c85 (patch) | |
tree | 09c9c37152e4b9e8da95b024f50986f3a7f28273 /server/rush.py | |
parent | 5c471d58e11ec21b8bee3c7e7a2fb8436952b64d (diff) |
...
Diffstat (limited to 'server/rush.py')
-rw-r--r-- | server/rush.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/rush.py b/server/rush.py new file mode 100644 index 0000000..e86bb63 --- /dev/null +++ b/server/rush.py @@ -0,0 +1,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() |