#752457 reprepro: Please release lock after crash

Package:
reprepro
Source:
reprepro
Description:
Debian package repository producer
Submitter:
Benjamin Drung
Date:
2026-06-25 22:19:02 UTC
Severity:
normal
Tags:
#752457#5
Date:
2014-06-23 17:09:20 UTC
From:
To:
When reprepro crashes, the database lock file is not released, because the lock
file still exists on the system. A patch is attached that changes the locking
system to use fcntl() to lock the database lockfile instead of open with O_EXCL.
With this change, the lock is correctly released in case of the reprepro process
is crashing.

#752457#10
Date:
2014-06-23 18:09:56 UTC
From:
To:
package reprepro
tag 752457 -patch +wontfix
thanks

That is currently intentional (at least as long as using bdb).
Once reprepro crashes it is likely that bdb just corruptet itself, so
one needs a check of the database, anyway. So it is nothing I want to
just step over. (Perhaps the error message if there is already a lock
file should be made a bit scarier).

	Bernhard R. Link