def child_fd_list_add(fd):
 global child_fd_list
 child_fd_list.append(fd)

def child_fd_list_add ( fd ) : global child_fd_list child_fd_list . append ( fd )
add a file descriptor to list to be closed in child processes .