proc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package proc discovers and stops running Interseptor processes by image name.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alive

func Alive(pid int) bool

Alive reports whether pid still exists.

func AliveInterseptor

func AliveInterseptor(pid int) bool

AliveInterseptor reports whether pid is alive *and* is actually running an Interseptor binary (image name "interseptor"/"interseptor.exe"), not some unrelated process that has since reused a recycled PID. Callers that are about to signal/kill a PID they previously recorded (e.g. the launcher's stop/allocatePorts paths) should prefer this over the generic Alive(pid) — on a long-running system PIDs get reused, and a plain liveness check can't tell "our child is still alive" apart from "some other process now has this PID". Falls back to Alive(pid) on platforms/paths where a cheap, per-PID image-name check isn't available (see per-OS implementations).

func Force

func Force(pid int) error

Force sends SIGKILL to pid.

func Graceful

func Graceful(pid int) error

Graceful sends SIGTERM to pid.

Types

type Proc

type Proc struct {
	PID  int
	Path string // absolute path to the binary, if known
}

Proc is a discovered interseptor process.

func List

func List() ([]Proc, error)

List returns every running interseptor process (excluding the caller).

Jump to

Keyboard shortcuts

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