remove unnecessary pid check.

if pid becomes non-zero we bail the while loop and return anyway.