Cotal TypeScript packages
    Preparing search index...

    Function readPidfile

    • A pidfile's trimmed content, or undefined when there is no pidfile. Read once, never behind an existence check: the owner removes its record on exit, so a file that existed a moment ago can be gone at the read. Only ENOENT means absent; any other read error throws, naming the path because an error raised at the read rather than the open (EISDIR) carries none.

      Parameters

      • path: string

      Returns string | undefined