Cotal TypeScript packages
    Preparing search index...

    Function removePidPair

    • Remove a record whose process is PROVEN gone: the pin, then the pidfile. Never called on a refused stop: the preserved record keeps its pin so the next attempt re-adjudicates. It holds the lock writePidPair holds and removes only while the pidfile still reads recorded (trimmed), the record the caller adjudicated. A publish that committed a successor meanwhile is left whole, never stripped to a pidfile with no pin (#1238). When given a creation pin, also compare that pin under the lock: a successor can publish the same numeric PID with a different start. The gone and stale guards recheck liveness instead (stale also accepts a mismatched pin). Returns false when the guard fails. With no pidfile, a stray pin is removed.

      Parameters

      Returns boolean