From: MRAB on
Metalone wrote:
> Well, I just realized that I could use a separate pipe to send the
> result back. This might work ok.

Or you could call .poll on the pipe and sleep if there's no input yet.