waitForProcess

This patch fixes a bug of yet another waitForProcess. This is critical for Mighty.

Since newlines of your project is CRLF, this patch might be wrong. Please check it out.