without a timeout set read from the pipe while we wait so that Process.waitpid doe not hang after the pipe buffer gets filled