Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Close kq if used
Baptiste Daroussin committed 13 years ago
commit b104646c6a9891f11a629aeabc930781df103075
parent 965cc81
1 file changed +3 -0
modified libpkg/fetch.c
@@ -370,6 +370,9 @@ pkg_fetch_file_to_fd(struct pkg_fetch *f, const char *url, int dest, time_t *t)
		fcntl(fileno(f->ssh), F_SETFL, ~O_NONBLOCK);
	}

+
	if (kq != -1)
+
		close(kq);
+

	/* restore original doc */
	u->doc = doc;