[master] 6ab261261 Always look for .rej files...

Poul-Henning Kamp phk at FreeBSD.org
Mon Mar 4 23:13:07 UTC 2019


commit 6ab26126194fc81017c1847925b7ea4fc2b10969
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Mar 4 23:12:27 2019 +0000

    Always look for .rej files...

diff --git a/lib/libvarnish/vsub.c b/lib/libvarnish/vsub.c
index fc2083cbb..3a497c9c4 100644
--- a/lib/libvarnish/vsub.c
+++ b/lib/libvarnish/vsub.c
@@ -91,9 +91,9 @@ VSUB_closefrom(int fd)
 
 	if (maxfd == 0)
 		maxfd = sysconf(_SC_OPEN_MAX);
-	assert(i > 0);
-	for (; i > fd; i--)
-		(void)close(i);
+	assert(maxfd > 0);
+	for (; maxfd > fd; maxfd--)
+		(void)close(maxfd);
 #endif
 }
 


More information about the varnish-commit mailing list