aboutsummaryrefslogtreecommitdiffstats
path: root/runprog.py
diff options
context:
space:
mode:
Diffstat (limited to 'runprog.py')
-rwxr-xr-xrunprog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/runprog.py b/runprog.py
index 51368c5..2cac32a 100755
--- a/runprog.py
+++ b/runprog.py
@@ -9,14 +9,14 @@ while True:
thread = multiprocessing.Process(target = thread_, args = ())
thread.start()
- sleep(60 * 60 * 2)
+ sleep(60*60*2)
print("closing...")
file = open("pid.txt", "r")
pid = file.readlines()[0]
file.close()
- subprocess.run(["kill", pid])
+ # subprocess.run(["kill", pid])
thread.terminate()
print("killed ", pid)