Merge branch 'tmp-394' into 'master'

Change how stdin and stdout are closed

Closes #394

See merge request openconnect/ocserv!252
This commit is contained in:
Nikos Mavrogiannopoulos
2021-01-31 19:43:15 +00:00

View File

@@ -120,11 +120,6 @@ int main(int argc, char **argv)
restore_secmod_socket_file_name(ws->secmod_addr.sun_path);
// Close stdout and stderr early to avoid spurious logs
/* we don't need them */
close(STDIN_FILENO);
close(STDOUT_FILENO);
str = getenv("OCSERV_ALLOW_BROKEN_CLIENTS");
if (str && str[0] == '1' && str[1] == 0)
allow_broken_clients = 1;