From 64441be3301f428d133f30ee684ed3ba981a6f9e Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 15 Apr 2024 13:23:54 -0300 Subject: [PATCH] chore: Remove accidentally committed file --- bin/mrun.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 bin/mrun.py diff --git a/bin/mrun.py b/bin/mrun.py deleted file mode 100644 index 7f30d5702..000000000 --- a/bin/mrun.py +++ /dev/null @@ -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")