On Sun, 4 Jul 2021, RVP wrote:
+ n = fwrite(p, 1, len, fp); + if (n == 0) { + if (errno == EINTR) + clearerr(fp); + else + return 0; + }
Small correction: that clearerr() is probably unnecessary--please omit. -RVP