Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Loop again is nothing is available to read
Baptiste Daroussin committed 13 years ago
commit e5facf268f6789e5f621f50c86a3eb12c9349540
parent 5953df2
1 file changed +2 -0
modified libpkg/fetch.c
@@ -335,6 +335,8 @@ pkg_fetch_file_to_fd(struct pkg_fetch *f, const char *url, int dest, time_t *t)
				break;
		} else {
			kevent(kq, &e, 1, &ev, 1, NULL);
+
			if (ev.data == 0)
+
				continue;
			size_t size = (size_t)ev.data;
			if (size > sizeof(buf))
				size = sizeof(buf);