Commit a588d046 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Don't start the ban-lurker until -spersistent is done loading.

parent b1f19faa
...@@ -86,6 +86,7 @@ static struct lock ban_mtx; ...@@ -86,6 +86,7 @@ static struct lock ban_mtx;
static struct ban *ban_magic; static struct ban *ban_magic;
static pthread_t ban_thread; static pthread_t ban_thread;
static struct ban * volatile ban_start; static struct ban * volatile ban_start;
static bgthread_t ban_lurker;
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
* BAN string magic markers * BAN string magic markers
...@@ -567,6 +568,7 @@ BAN_Compile(void) ...@@ -567,6 +568,7 @@ BAN_Compile(void)
SMP_NewBan(ban_magic->spec, ban_len(ban_magic->spec)); SMP_NewBan(ban_magic->spec, ban_len(ban_magic->spec));
ban_start = VTAILQ_FIRST(&ban_head); ban_start = VTAILQ_FIRST(&ban_head);
WRK_BgThread(&ban_thread, "ban-lurker", ban_lurker, NULL);
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
...@@ -1074,5 +1076,4 @@ BAN_Init(void) ...@@ -1074,5 +1076,4 @@ BAN_Init(void)
ban_magic->flags |= BAN_F_GONE; ban_magic->flags |= BAN_F_GONE;
VSC_C_main->n_ban_gone++; VSC_C_main->n_ban_gone++;
BAN_Insert(ban_magic); BAN_Insert(ban_magic);
WRK_BgThread(&ban_thread, "ban-lurker", ban_lurker, NULL);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment