for bug #200, deadloop when read/write 0 and ETIME. 2.0.16.