dup2()和fork之后无法从管道读取。 C
I'm writing a code that echo a string and sed it two times. My output is correct, but when I try to place that string on an array it blocks on read and goes on with the other calls.
这是代码:
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#incl...