Fix typo maintainance -> maintenance

This commit is contained in:
Mike Miller
2013-07-23 21:33:18 +02:00
committed by Nikos Mavrogiannopoulos
parent 71318424f4
commit 5e0e286c27
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ unsigned int max;
max = MAX(2*s->config->max_clients, DEFAULT_MAX_CACHED_TLS_SESSIONS); max = MAX(2*s->config->max_clients, DEFAULT_MAX_CACHED_TLS_SESSIONS);
if (s->tls_db->entries >= max) { if (s->tls_db->entries >= max) {
mslog(s, NULL, LOG_INFO, "maximum number of stored TLS sessions reached (%u)", max); mslog(s, NULL, LOG_INFO, "maximum number of stored TLS sessions reached (%u)", max);
need_maintainance = 1; need_maintenance = 1;
return -1; return -1;
} }
+5 -5
View File
@@ -54,7 +54,7 @@
int syslog_open = 0; int syslog_open = 0;
static unsigned int terminate = 0; static unsigned int terminate = 0;
static unsigned int reload_conf = 0; static unsigned int reload_conf = 0;
unsigned int need_maintainance = 0; unsigned int need_maintenance = 0;
static unsigned int need_children_cleanup = 0; static unsigned int need_children_cleanup = 0;
static void ms_sleep(unsigned ms) static void ms_sleep(unsigned ms)
@@ -358,7 +358,7 @@ static void handle_children(int signo)
static void handle_alarm(int signo) static void handle_alarm(int signo)
{ {
need_maintainance = 1; need_maintenance = 1;
} }
static void drop_privileges(main_server_st* s) static void drop_privileges(main_server_st* s)
@@ -596,9 +596,9 @@ static void check_other_work(main_server_st *s)
} }
/* Check if we need to expire any cookies */ /* Check if we need to expire any cookies */
if (need_maintainance != 0) { if (need_maintenance != 0) {
need_maintainance = 0; need_maintenance = 0;
mslog(s, NULL, LOG_INFO, "Performing maintainance"); mslog(s, NULL, LOG_INFO, "Performing maintenance");
expire_tls_sessions(s); expire_tls_sessions(s);
expire_banned(s); expire_banned(s);
alarm(MAINTAINANCE_TIME(s)); alarm(MAINTAINANCE_TIME(s));
+1 -1
View File
@@ -16,7 +16,7 @@ void write_pid_file(void);
void remove_pid_file(void); void remove_pid_file(void);
/* set to 1 to start cleaning up cookies, sessions etc. */ /* set to 1 to start cleaning up cookies, sessions etc. */
extern unsigned int need_maintainance; extern unsigned int need_maintenance;
struct listener_st { struct listener_st {
struct list_node list; struct list_node list;