process

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package process provides small, platform-aware utilities for interacting with OS processes by PID. Today it ships a single function — IsAlive — because the same Unix idiom (Signal(0)) silently fails on Windows and was duplicated across forge-cli and forge-ui with the Windows variant missing. See issue #59.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlive

func IsAlive(pid int) bool

IsAlive reports whether a process with the given PID is currently running.

On Unix, this calls FindProcess and sends a null signal (signal 0), which the kernel treats as a permission/existence check without delivering an actual signal. The OS returns success when the process exists, even if the caller lacks permission to signal it.

Any error from either step is treated as "not alive" so callers can use a simple bool branch.

Types

This section is empty.

Jump to

Keyboard shortcuts

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