mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user