Check the return value of fscanf() when reading a PID file.