make sure no error will go to stderr if in inetd (fix #303)

This commit is contained in:
yrutschle 2021-09-27 13:21:16 +02:00
parent 4277d27063
commit c8fce0a02f

View File

@ -197,6 +197,7 @@ int main(int argc, char *argv[], char* envp[])
if (cfg.inetd)
{
cfg.verbose = 0;
close(fileno(stderr)); /* Make sure no error will go to client */
start_shoveler(0);
exit(0);
}