[libqb] [PATCH 2/2] LOOP: handle errors from the poll function