fixed bug in child pipe reading code which limited the total readable bytes