In read_batch mode, we read ints from the new batch_gen_fd pipe and