From: Kern Sibbald Date: Thu, 10 Sep 2009 03:48:50 +0000 (+0200) Subject: Fix possible termination problem X-Git-Tag: Release-7.0.0~2633^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfa19379f746f92f4e9d5530bd71de9791b4a0dc;p=bacula%2Fbacula Fix possible termination problem --- diff --git a/bacula/src/lib/lockmgr.c b/bacula/src/lib/lockmgr.c index f8876e3bbc..60d83cff75 100644 --- a/bacula/src/lib/lockmgr.c +++ b/bacula/src/lib/lockmgr.c @@ -600,6 +600,9 @@ void lmgr_cleanup_main() { dlist *temp; + if (!global_mgr) { + return; + } pthread_cancel(undertaker); lmgr_cleanup_thread(); pthread_mutex_lock(&lmgr_global_mutex);