self.sim_process.terminate()
time.sleep(0.2)
i = 0
while self.sim_process.poll() is None:
log.info("Waiting for sim process to die")
time.sleep(0.1 * 2**i)
if i > 4:
// Die!
After Change
def close_sim(self):
log.info("Closing sim")
process_to_kill = self.sim_process
if process_to_kill is not None:
utils.kill_process(process_to_kill)
def _kill_competing_procs(self):
// TODO: Allow for many environments on the same machine by using registry DB for this and sharedmem
path = utils.get_sim_bin_path()
if path is None: