pid

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pid answers whether a recorded process is still running. One implementation with two readers: the cache's in-flight registry, which reports a killed run to the next one, and machine-wide admission, which retires the claim a dead run left behind.

Untagged, so the package comment belongs to the package on every platform. Put on the !windows file it would have been invisible to a Windows reader and to any tool that builds for one.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alive

func Alive(pid int) bool

Alive reports whether pid is still running. Signal 0 performs the permission and existence checks without delivering anything, which is the portable-POSIX way to ask. A process owned by another user answers EPERM, and that still proves it exists, so only ESRCH ("no such process") counts as dead.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL