From: Kern Sibbald Date: Thu, 10 Sep 2009 03:48:50 +0000 (+0200) Subject: Fix possible termination problem X-Git-Tag: Release-5.0.0~316^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca909987c73bc9a3bafe7dbf62d30e5790eccb39;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);