Fix parent child pipe issue
try this
move around
Accomodate timeout for now
Merge pull request #1 from nlim/fix-parent-child-pipe-issue-nlim

Parent should not wait for child before closing its write end of pipe