reap

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package reap installs a SIGCHLD-driven loop that wait()s children reparented to this process (PID 1 in the sandbox), and is the single authoritative waiter for every child on Linux so no other caller races it with its own wait4/cmd.Wait.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitExit

func AwaitExit(pid int) (int, bool)

AwaitExit blocks until the reaper has reaped pid, returning (code, true). Only meaningful after Start(); if the reaper is not running it returns (0,false).

func Start

func Start()

Start installs the SIGCHLD reaper. Safe to call once. After Start, AwaitExit returns the reaped exit code for a given child pid (blocking until reaped).

Types

This section is empty.

Jump to

Keyboard shortcuts

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