I think the proper behavior here is to return the bytes actually read, then retry the rest of the read. If there is a permanent error then it can be returned from the next read. It doesn't make sense to return an error if you don't have to...
Cheers, Andreas > On Sep 26, 2020, at 08:19, Nikos Tsipinakis <[email protected]> wrote: > > A small correction that I noticed a bit too late to fix in the previous > message: We > should also reset errno at the beginning of the call to ensure it's actually > an > error. > <0001-Use-full_read-to-avoid-errors-due-to-short-reads.patch>
