mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
fork moved to gdbm backend expiration
This commit is contained in:
14
src/main.c
14
src/main.c
@@ -691,18 +691,8 @@ fork_failed:
|
||||
need_maintainance = 0;
|
||||
mslog(&s, NULL, LOG_INFO, "Performing maintainance");
|
||||
expire_tls_sessions(&s);
|
||||
|
||||
if (s.config->cookie_db_name != NULL) { /* gdbm */
|
||||
pid = fork();
|
||||
if (pid == 0) { /* child */
|
||||
clear_lists(&s);
|
||||
setproctitle(PACKAGE_NAME"-maint");
|
||||
expire_cookies(&s);
|
||||
exit(0);
|
||||
}
|
||||
} else { /* hash */
|
||||
expire_cookies(&s);
|
||||
}
|
||||
expire_cookies(&s);
|
||||
|
||||
alarm(MAINTAINANCE_TIME);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user