Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Loop again is nothing is available to read
Baptiste Daroussin committed 13 years ago
commit e5facf268f6789e5f621f50c86a3eb12c9349540
parent 5953df2d5a54be3aa34cf8da9de3d0a8ec73c3dd
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);