(self)
Make sure subprocess is terminated
Make sure subprocess is terminated
Make sure subprocess is terminated
def terminate_subprocess(self):
        "Make sure subprocess is terminated"
        try:
            self.rpcsubproc.kill()
        except OSError:
            # process already terminated
            return
        else:
            try:
                self.rpcsubproc.wait()
            except OSError:
                return
def terminate_subprocess ( self ) : try : self . rpcsubproc . kill ( ) except OSError : # process already terminated return else : try : self . rpcsubproc . wait ( ) except OSError : return