def stop(self): '''Maps to the CLI command and stop the running Wishbone processes. ''' try: pid = PIDFile(self.pid) sys.stdout.write("Stopping instance with PID ") sys.stdout.flush() for entry in pid.read(): sys.stdout.write(" %s " % (entry)) sys.stdout.flush() pid.sendSigint(entry) pid.cleanup() print("") except Exception as err: print("") print(("Failed to stop instances. Reason: %s" % (err)))
def stop(self, command, pid): ''' Handles the Wishbone stop command. ''' try: pid = PIDFile(pid) sys.stdout.write("Stopping instance with PID ") sys.stdout.flush() for entry in pid.read(): sys.stdout.write(" %s " % (entry)) sys.stdout.flush() pid.sendSigint(entry) pid.cleanup() print("") except Exception as err: print("") print(("Failed to stop instances. Reason: %s" % (err)))
def stop(self, command, pid): ''' Handles the Wishbone stop command. ''' try: pid = PIDFile(pid) sys.stdout.write("Stopping instance with PID ") sys.stdout.flush() for entry in pid.read(): sys.stdout.write(" %s " % (entry)) sys.stdout.flush() pid.sendSigint(entry) pid.cleanup() print("") except Exception as err: print ("") print ("Failed to stop instances. Reason: %s" % (err))