platform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package platform holds what ncly needs from the operating system: for now, the process tree that cleanup reaches, as Programs that ncly runs in contract.md defines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BecomeSubreaper

func BecomeSubreaper() error

BecomeSubreaper does nothing: macOS has no subreaper, so a descendant whose parent exited before the signal escapes cleanup there.

func Descendants

func Descendants(pid int) []int

Descendants returns the running processes whose chain of parents leads to pid, found through their parent process, so a descendant that left the process group of its parent is still found.

func Running

func Running(pid int) bool

Running reports whether a process runs. A zombie, which has exited and waits for its parent to read its status, no longer runs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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