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