parameters: (self, port)
docstring: Checks if there is a process listening on port number |port| and
      terminates it if found.
  
      Args:
        port: Port number to check.
docstring_summary: Checks if there is a process listening on port number |port| and
      terminates it if found.
docstring_tokens: Checks if there is a process listening on port number |port| and terminates it if found .
function: def _KillProcessListeningOnPort(self, port):
      """Checks if there is a process listening on port number |port| and
      terminates it if found.
  
      Args:
        port: Port number to check.
      """
      if subprocess.call(['fuser', '-kv', '%d/tcp' % port]) == 0:
        # Give the process some time to terminate and check that it is gone.
        time.sleep(2)
        assert subprocess.call(['fuser', '-v', '%d/tcp' % port]) != 0, \
            'Unable to kill process listening on port %d.' % port
function_tokens: def _KillProcessListeningOnPort ( self , port ) : if subprocess . call ( [ 'fuser' , '-kv' , '%d/tcp' % port ] ) == 0 : # Give the process some time to terminate and check that it is gone. time . sleep ( 2 ) assert subprocess . call ( [ 'fuser' , '-v' , '%d/tcp' % port ] ) != 0 , 'Unable to kill process listening on port %d.' % port