Skip to contents

Removes the .specmill-lock directory an interrupted apply left behind. It refuses unless the lock holds nothing but its owner record and the recorded process is no longer running on this machine. A lock is never cleared implicitly.

Usage

clear_generation_lock(root)

Arguments

root

Explicit existing client root directory.

Value

TRUE invisibly when a lock was removed, FALSE when none existed.

Details

A lock written before owner records existed is empty and is removed after the same checks; confirm no writer is running first. A lock recorded on another machine is refused, because its process cannot be checked from here. Run recover_client() afterwards to restore any journal.

See also