def child_fd_list_remove(fd):
 global child_fd_list
 try:
  child_fd_list.remove(fd)
 except Exception:
  pass

def child_fd_list_remove ( fd ) : global child_fd_list try : child_fd_list . remove ( fd ) except Exception : pass
remove a file descriptor to list to be closed in child processes .