From: Eric Bollengier Date: Tue, 16 Oct 2012 07:00:20 +0000 (+0200) Subject: Fix messages segfault X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=47a135051a57be6bf84dad20ff61d9a70f95d511;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();