Skip to content

flock: unlink lock file on release#119

Open
nopjmp wants to merge 1 commit into
antirez:mainfrom
nopjmp:flock-unlink
Open

flock: unlink lock file on release#119
nopjmp wants to merge 1 commit into
antirez:mainfrom
nopjmp:flock-unlink

Conversation

@nopjmp
Copy link
Copy Markdown

@nopjmp nopjmp commented May 13, 2026

Store the lock path globally so we can unlink() after close. Prevents EACCES when a subsequent run executes under a different uid (root vs non-root) and the stale file from the previous owner can't be reopened.

Store the lock path globally so we can unlink() after close. Prevents
EACCES when a subsequent run executes under a different uid (root vs
non-root) and the stale file from the previous owner can't be reopened.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant