Mar-22-2018, 03:04 PM
Thanks for the help. I resolved this issue by adding one line of code, by checking to see if the sub process object is still running using process.poll().
for process in self.processes: if process.poll() == None: for child in psutil.Process(process.pid).children(): child.kill() process.kill()