chore: Remove accidentally committed file
This commit is contained in:
parent
ac5155122c
commit
64441be330
30
bin/mrun.py
30
bin/mrun.py
|
@ -1,30 +0,0 @@
|
|||
from os import fork, kill, waitpid
|
||||
from signal import SIGTERM
|
||||
from subprocess import run
|
||||
from sys import exit
|
||||
from time import sleep
|
||||
|
||||
num_processes = 50
|
||||
|
||||
children = []
|
||||
|
||||
def be_a_child():
|
||||
run(["bin/test-crawl"])
|
||||
|
||||
|
||||
for _ in range(num_processes):
|
||||
sleep(0.5)
|
||||
pid = fork()
|
||||
if pid == 0:
|
||||
be_a_child()
|
||||
exit()
|
||||
children.append(pid)
|
||||
|
||||
input("Enter to exit...")
|
||||
for pid in children:
|
||||
kill(pid, SIGTERM)
|
||||
|
||||
for pid in children:
|
||||
waitpid(pid, 0)
|
||||
|
||||
print("Done")
|
Loading…
Reference in a new issue