From 1eb848c868a11973207bfcdc83925b669163c234 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 8 May 2013 20:45:27 +0200 Subject: [PATCH] Unbreak access logging. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We forgot to wake up the logger thread.  --- accesslog.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/accesslog.cpp b/accesslog.cpp index 6c4d367..9cd5be0 100644 --- a/accesslog.cpp +++ b/accesslog.cpp @@ -23,8 +23,11 @@ AccessLogThread::AccessLogThread(const string &filename) void AccessLogThread::write(const ClientStats& client) { - MutexLock lock(&mutex); - pending_writes.push_back(client); + { + MutexLock lock(&mutex); + pending_writes.push_back(client); + } + wakeup(); } void AccessLogThread::do_work() -- 2.39.2