From 03371f4800ba612da9718a7d7c65bb181080f43b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 16 Oct 2012 09:00:20 +0200 Subject: [PATCH] Fix messages segfault --- bacula/src/lib/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5