setenv("_EDC_FLUSH_STDOUT_PIPE","YES",1);
The purpose of this environment variable is to better facilitate communication between two processes that use pipes. The child process is using stdin for the read end of one pipe and stdout for the write end of a different pipe. The parent process has the opposite ends of the pipes.