Leave stale lockfiles less often. Change logic to attempt deletion of the PID lockfile regardless of the outcome of writing to the lockfile.
This fixes #6. See LUCY-265. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/b161fcdf Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/b161fcdf Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/b161fcdf Branch: refs/heads/master Commit: b161fcdfdfe422352751d6f04499a2cb17a2535f Parents: 58ee0f6 7f8dc10 Author: Marvin Humphrey <[email protected]> Authored: Fri Aug 1 18:00:46 2014 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Fri Aug 1 18:00:46 2014 -0700 ---------------------------------------------------------------------- core/Lucy/Store/Lock.c | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) ----------------------------------------------------------------------
