path: sagemath_9.5-6/sage/src/sage/interfaces/maple.py # TODO: When Sage exits it doesn't correctly by default kill # all running Maple interpreters, for some strange reason. # Calling this function uses the kill and pidof operating system # programs to find all instances of cmaple and kill them. # """ path: sagemath_9.5-6/sage/src/sage/interfaces/maple.py # self._expect = None # while True: # pid = os.popen("pidof cmaple").read()[:-1] # if len(pid) > 0: # os.system('kill -9 %s'%pid)