package
0.0.0-20240108175859-0eacd2e75e56
Repository: https://github.com/keybase/go-updater.git
Documentation: pkg.go.dev
# README
Process
Find and terminate processes by name or path.
# Functions
FindPIDsWithMatchFn returns pids for processes matching function.
FindProcesses returns processes containing string matching process path.
KillAll kills all processes that match.
KillPID kills process at pid (sends a SIGKILL on unix).
NewMatcher returns a new matcher.
TerminateAll stops all processes with executable names that contains the matching string.
TerminateAllWithProcessesFn stops processes processesFn that satify the matchFn.
TerminatePID is an overly simple way to terminate a PID.
WaitForExit returns processes (if any) that are still running after wait.
# Constants
ExecutableEqual matches executable name equals string.
PathContains matches path contains string.
PathEqual matches path equals string.
PathPrefix matches path has string prefix.
# Interfaces
Log is the logging interface for the process package.