Commit 1f394dc7 authored by Julien Muchembled's avatar Julien Muchembled

Fix TypeError when the system lacks memory

This fixes up commit e3781aff
(Reduce probability of dying when the system lacks memory").
parent 87bc6bb9
......@@ -156,6 +156,7 @@ class Popen(subprocess.Popen):
self.returncode = -1
def stop(self):
if self.pid:
self.terminate()
t = threading.Timer(5, self.kill)
t.start()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment