Expose pid in return object, and delay readPipe until next event tick