def kill_listen_processes(namespace):
 if _kill_listen_processes(namespace, force=False):
  try:
   wait_until_no_listen_pids_namespace(namespace)
  except PidsInNamespaceException:
   _kill_listen_processes(namespace, force=True)
   wait_until_no_listen_pids_namespace(namespace)

def kill_listen_processes ( namespace ) : if _kill_listen_processes ( namespace , force = False ) : try : wait_until_no_listen_pids_namespace ( namespace ) except PidsInNamespaceException : _kill_listen_processes ( namespace , force = True ) wait_until_no_listen_pids_namespace ( namespace )
kill all processes listening within the given namespace .