diff options
author | jwansek <eddie.atten.ea29@gmail.com> | 2019-01-08 20:29:22 +0000 |
---|---|---|
committer | jwansek <eddie.atten.ea29@gmail.com> | 2019-01-08 20:29:22 +0000 |
commit | 7937aadec4389bfe96d3d80cfad50312efa2e5d9 (patch) | |
tree | f13a2acf402872cf3937bceaf92505cf4fe2afcc /runprog.py | |
parent | d6477e138753d8d1534faae3c23406ed6e4d6714 (diff) | |
download | SmallYTChannelBot-7937aadec4389bfe96d3d80cfad50312efa2e5d9.tar.gz SmallYTChannelBot-7937aadec4389bfe96d3d80cfad50312efa2e5d9.zip |
fixed a but with dates and fixed memory leak
Diffstat (limited to 'runprog.py')
-rw-r--r-- | runprog.py | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -11,13 +11,13 @@ while True: sleep(60 * 60 * 2) - #print("closing...") - #file = open("pid.txt", "r") - #pid = file.readlines()[0] - #file.close() + 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) + print("killed ", pid) |