parameters: (self)
docstring: UNIX: make sure subprocess is terminated and collect status
docstring_summary: UNIX: make sure subprocess is terminated and collect status
docstring_tokens: UNIX : make sure subprocess is terminated and collect status
function: def unix_terminate(self):
          "UNIX: make sure subprocess is terminated and collect status"
          if hasattr(os, 'kill'):
              try:
                  os.kill(self.rpcpid, SIGTERM)
              except OSError:
                  # process already terminated:
                  return
              else:
                  try:
                      os.waitpid(self.rpcpid, 0)
                  except OSError:
                      return
function_tokens: def unix_terminate ( self ) : if hasattr ( os , 'kill' ) : try : os . kill ( self . rpcpid , SIGTERM ) except OSError : # process already terminated: return else : try : os . waitpid ( self . rpcpid , 0 ) except OSError : return