[master] 6bead571d fix the missing high fd tracking
Nils Goroll
nils.goroll at uplex.de
Thu Nov 22 12:45:24 UTC 2018
commit 6bead571da6a2027a518af81e14d87a247f38156
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Thu Nov 22 13:44:50 2018 +0100
fix the missing high fd tracking
diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index f6c9c810d..6d3d7a09e 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -189,6 +189,8 @@ mch_cli_panic_clear(struct cli *cli, const char * const *av, void *priv)
static int mgt_max_fd;
#define CLOSE_FD_UP_TO (mgt_max_fd + 100)
+// XXX should work now - engage?
+//#define CLOSE_FD_UP_TO mgt_max_fd
#define CHECK_FD_UP_TO (CLOSE_FD_UP_TO + 100)
void
@@ -213,6 +215,7 @@ MCH_Fd_Inherit(int fd, const char *what)
{
assert(fd >= 0);
+ MCH_TrackHighFd(fd);
if (fd_map == NULL)
fd_map = vbit_new(128);
AN(fd_map);
More information about the varnish-commit
mailing list