shithub: 9pro

Download patch

ref: 8a6beae3c1e6459b26839a90f8219f460155e40c
parent: c7a2f580d6da01b22b3feeae72cbe53714e1ca97
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Wed May 20 10:44:59 EDT 2020

9gc: repeat

--- a/9gc.c
+++ b/9gc.c
@@ -59,10 +59,12 @@
 		if ((r = read(a->f, a->rdbuf+n, size-n)) <= 0) {
 			if (r == EINTR)
 				continue;
-			if (r == 0)
+			if (r == 0) {
 				a->flags |= Eof;
-			else
+			} else {
 				*err = 1;
+				perror("ctxread");
+			}
 			return NULL;
 		}
 	}