Skip to content

Stale LOCK file blocks all commands after process kill #21

@kfastov

Description

@kfastov

If a tgcli process is killed (timeout, SIGKILL, crash), the LOCK file remains and blocks all subsequent commands.

Repro:

tgcli send text --to @someone --message 'test' &
kill -9 $!
tgcli doctor --json
# → {"ok":false,"error":"Store is locked by another process ..."}

Workaround: rm ~/.local/share/tgcli/LOCK

Expected: Auto-detect stale locks (check if PID is alive).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions