aboutsummaryrefslogtreecommitdiffstats
path: root/sm/keydb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/keydb.c')
-rw-r--r--sm/keydb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sm/keydb.c b/sm/keydb.c
index 651bbd968..68325113a 100644
--- a/sm/keydb.c
+++ b/sm/keydb.c
@@ -811,6 +811,9 @@ lock_all (KEYDB_HANDLE hd)
if (hd->use_keyboxd)
return 0;
+ if (hd->keep_lock)
+ return 0;
+
/* Fixme: This locking scheme may lead to deadlock if the resources
are not added in the same order by all processes. We are
currently only allowing one resource so it is not a problem. */