diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-16 15:12:28 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-16 15:47:11 +0300 |
commit | c339c3614484642b178716b0ccca88bb6ad3c20c (patch) | |
tree | ce724bca9b71a2464d78b16bf4ed7d982e4e707a /lib/rpmlock.c | |
parent | 8b9d37302588d07e1a66f66c9b5dc84625aae061 (diff) | |
download | librpm-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/rpmlock.c')
-rw-r--r-- | lib/rpmlock.c | 2 |
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; |