proc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package proc starts stagent processes that must outlive their caller: the daemon (auto-started by whoever needs it first) and detached holders.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alive

func Alive(pid int) bool

Alive reports whether pid is a running process.

func SpawnDetached

func SpawnDetached(exe string, args []string, dir string, env []string, logPath string) (int, error)

SpawnDetached starts exe with args in a new session so it survives the caller, its terminal and the SSH connection. stdin/stdout go to /dev/null, stderr is appended to logPath (if non-empty). env nil inherits.

func SpawnHolder added in v0.4.2

func SpawnHolder(exe string, args []string, dir string, env []string, logPath string) (int, error)

SpawnHolder starts a detached holder: SpawnDetached everywhere but macOS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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