fork moved to gdbm backend expiration

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-10 13:50:56 +01:00
parent 528f1e0ce8
commit 4060c80469
2 changed files with 33 additions and 33 deletions

View File

@@ -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);
}