Nvm, got it working. Had to close output pipes in parent.