]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix possible termination problem
authorKern Sibbald <kern@sibbald.com>
Thu, 10 Sep 2009 03:48:50 +0000 (05:48 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 10 Sep 2009 03:48:50 +0000 (05:48 +0200)
bacula/src/lib/lockmgr.c

index f8876e3bbc5f7e2ed0467c590c1147ecca488f35..60d83cff75c1ee6d3d5c97be5cf0fb82c8de60db 100644 (file)
@@ -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);