mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
close stdin and stdout descriptors by default
This commit is contained in:
@@ -1069,6 +1069,10 @@ int main(int argc, char** argv)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* we don't need them */
|
||||
close(STDIN_FILENO);
|
||||
close(STDOUT_FILENO);
|
||||
|
||||
sigprocmask(SIG_BLOCK, &blockset, &sig_default_set);
|
||||
alarm(MAINTAINANCE_TIME(s));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user