diff options
author | jwansek <37976823+jwansek@users.noreply.github.com> | 2020-11-24 00:22:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-24 00:22:06 +0000 |
commit | 5a0b6637975d430dfd1be5894df89d56df215b09 (patch) | |
tree | abc405c6a636a0b42b91c52fb5ac9be07338078a /runprog.py | |
parent | 7677d95c729ab88080d742461fcb3b07c8b421f7 (diff) | |
parent | e2b1386a53c34812d1f8919a5c0ba67f9781a131 (diff) | |
download | SmallYTChannelBot-5a0b6637975d430dfd1be5894df89d56df215b09.tar.gz SmallYTChannelBot-5a0b6637975d430dfd1be5894df89d56df215b09.zip |
Merge pull request #1 from jwansek/MySQLdev
merge MySQL branch
Diffstat (limited to 'runprog.py')
-rwxr-xr-x | runprog.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |