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

This commit is contained in:
yrutschle committed 2021-09-27 13:21:16 +02:00
1 parent 4277d27063
commit c8fce0a02f
1 file changed
+1
+1
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);
}