If CMAN dies uncleanly (ex: because of cman_kill_node() call
on another cluster node), rgmanager would hang trying to
release the lock space, preventing it from exiting and causing
it to spin.
This patch works around the hang during unclean shutdown
situations.
out_cleanup:
- clu_lock_finished(rgmanager_lsname);
+ /* XXX - This hangs if CMAN has died, so we skip if we are
+ * exiting uncleanly. */
+ if (!dying)
+ clu_lock_finished(rgmanager_lsname);