Added a check on the return values for fnctl
calls in pbs_original_connect so we do not
exit do while loop too early.