From: Eric Bollengier Date: Tue, 16 Oct 2012 07:00:20 +0000 (+0200) Subject: Fix messages segfault X-Git-Tag: Release-7.0.0~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03371f4800ba612da9718a7d7c65bb181080f43b;p=bacula%2Fbacula Fix messages segfault --- diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 2a67c78ea6..e2fd3e416b 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -130,7 +130,7 @@ void MSGS::unlock() void MSGS::wait_not_in_use() /* leaves fides_mutex set */ { lock(); - while (m_in_use) { + while (m_in_use || m_closing) { unlock(); bmicrosleep(0, 200); /* wait */ lock();