Skip to content
Snippets Groups Projects
Commit b9771b51 authored by Alex Wiens's avatar Alex Wiens
Browse files

Prule.daemon: PruleThread: Add additional exception catching for process termination

parent a7961d74
No related branches found
No related tags found
No related merge requests found
......@@ -739,8 +739,14 @@ class PruleThread(threading.Thread):
if self.currentProcess == None:
return None
proc = self.currentProcess
try:
self.currentProcess.stdin.close()
except:
pass
try:
self.currentProcess.terminate()
except:
pass
returncode = self.currentProcess.wait()
print("Prule process {} stopped, returncode {}".format(self.currentProcess.pid, returncode))
with self.stopCondition:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment