问题 Using fork I created a child and in the child I'm executing the ls command using execl . To send the output to parent,I used pipe and dup . The parent then prints the output. The code gives the expected output, but when I tried to restore back the stdout which I saved initially in stdout_holder , nothing is printed on terminal (when I used printf("hello") or the execl statement below it). However after few observations, it is observed that hello is printed only when nothing is done after