Calling read in forked process not working (Linux C)
问题 C beginner here. I'm trying to read from my reducer_pipes in the fork_reducer method, but when I call read , nothing under the read gets executed. If I don't call read it does get executed. The read method does not appear to be printing any error messages. C Code #include <sys/wait.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <time.h> #include <errno.h> #define BUFFER_SIZE 1024 #define ALPHA_OFFSET 97 #define LETTERS 26 const