Skip to content

Registry: sleep in the lock loop, guard pid reuse #57

Description

@fiddur

registry.tsacquireLock busy-waits (while (Date.now() < wait) {}), burning CPU for up to 50ms per retry, and entry liveness is kill(pid, 0) — a reused pid keeps a dead entry alive.

Proposal: sleep in the loop; use startedAt vs process start time as a tiebreak for pid reuse.

Effort: S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions