¡@

Home 

c++ Programming Glossary: in_fd

Linux C++ run and communicate with new process

http://stackoverflow.com/questions/4127567/linux-c-run-and-communicate-with-new-process

will be available to both parent and child. int in_fd 2 int out_fd 2 pipe in_fd For child's stdin pipe out_fd For.. to both parent and child. int in_fd 2 int out_fd 2 pipe in_fd For child's stdin pipe out_fd For child's stdout Fork pid_t.. out_fd 0 dup2 out_fd 1 STDOUT_FILENO close out_fd 1 close in_fd 1 dup2 in_fd 0 STDIN_FILENO close in_fd 0 Now launch your child..