Cotal TypeScript packages
    Preparing search index...

    Type Alias ProcessStartTokenReader

    ProcessStartTokenReader: (pid: number) => string | undefined

    The creation-identity token of a live pid: on Linux /proc/<pid>/stat field 22 (starttime — ticks since boot, fixed for the life of the pid); on macOS its start time in microseconds, through the shipped Node-API binding; on other BSDs ps -o lstart=; on Windows the process creation FILETIME (GetProcessTimes through the shipped Node-API binding). A pid whose token is undefined can still be recorded — the record then carries no start pin, and teardown warns that it is proceeding without the identity check. That pid-only shape is for a record that predates pinning, or a host that could not read a start at all. It is not the Windows steady state.

    Type Declaration

      • (pid: number): string | undefined
      • Parameters

        • pid: number

        Returns string | undefined