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.
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