Prevent GetMaxFiles() debug output from going to forked processes

This commit is contained in:
Bryan Stansell 2020-04-30 19:41:18 -07:00
parent 02d0c15a77
commit 55738e4e97
No known key found for this signature in database
GPG Key ID: 28E4B7253029E7F6
2 changed files with 4 additions and 1 deletions

View File

@ -590,7 +590,6 @@ GetMaxFiles(void)
mf = (FD_SETSIZE - 1);
}
#endif
CONDDEBUG((1, "GetMaxFiles(): maxfiles=%d", mf));
return mf;
}

View File

@ -1452,6 +1452,10 @@ main(int argc, char **argv)
#if !USE_IPV6
ProbeInterfaces(bindAddr);
#endif
#if !HAVE_CLOSEFROM
i = GetMaxFiles();
CONDDEBUG((1, "main(): GetMaxFiles=%d", i));
#endif
/* initialize the timers */
for (i = 0; i < T_MAX; i++)