Handle EINTR when reading from child's pipe.