Got some example code for fdopen and etc for pipes.
Trying this code out.