read(2) with nbytes=0 can fail.