summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-16 15:12:28 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-16 15:47:11 +0300
commitc339c3614484642b178716b0ccca88bb6ad3c20c (patch)
treece724bca9b71a2464d78b16bf4ed7d982e4e707a /lib
parent8b9d37302588d07e1a66f66c9b5dc84625aae061 (diff)
downloadlibrpm-tizen-c339c3614484642b178716b0ccca88bb6ad3c20c.tar.gz
librpm-tizen-c339c3614484642b178716b0ccca88bb6ad3c20c.tar.bz2
librpm-tizen-c339c3614484642b178716b0ccca88bb6ad3c20c.zip
Move the default transaction lock out of BDB environment namespace
- We dont want the transaction lock to get mixed with the BDB environment, nor do we want it wiped out with it as the ts lock protects things *around* the environment. Unlike the environment, any fcntl locks on the file get released when process dies, so if there is a lock, there's a process alive holding it and you'd better not remove it. - Use the same lock path in macro configuration and built-in fallback - Make it a hidden file to avoid people confusing lock file existence with it actually being locked
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmlock.c b/lib/rpmlock.c
index 1bac3a5fd..d220bee94 100644
--- a/lib/rpmlock.c
+++ b/lib/rpmlock.c
@@ -14,7 +14,7 @@
/* Internal interface */
-#define RPMLOCK_PATH LOCALSTATEDIR "/lock/rpm/transaction"
+#define RPMLOCK_PATH LOCALSTATEDIR "/rpm/.rpm.lock"
static const char * const rpmlock_path_default = "%{?_rpmlock_path}";
static const char * rpmlock_path = NULL;