Commit 8f7313e5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

init the condvar before we signal it

parent d78f2c00
......@@ -761,8 +761,8 @@ BAN_Init(void)
/* Add a placeholder ban */
bp = BAN_Build();
AN(bp);
AZ(BAN_Commit(bp));
AZ(pthread_cond_init(&ban_lurker_cond, NULL));
AZ(BAN_Commit(bp));
Lck_Lock(&ban_mtx);
ban_mark_completed(VTAILQ_FIRST(&ban_head));
Lck_Unlock(&ban_mtx);
......
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