progressnativefixture

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package progressnativefixture provides native boundaries for isolated progress tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DenyTerminalPath

func DenyTerminalPath() error

DenyTerminalPath installs a permanent private-process policy denying F_GETPATH. It must never run in a normal process: the native policy cannot be removed.

Types

type SignalState

type SignalState struct {
	// contains filtered or unexported fields
}

SignalState owns a saved disposition and the native identity of the locked caller thread. The caller must join all Send calls before Close and keep its OS thread locked until Close.

func OpenSignalState

func OpenSignalState() (*SignalState, error)

OpenSignalState saves the existing Go SIGUSR1 handler and clears only SA_RESTART.

func (*SignalState) Close

func (state *SignalState) Close() error

Close restores and verifies the saved disposition, then frees its native storage.

func (*SignalState) Send

func (state *SignalState) Send() error

Send delivers SIGUSR1 to the captured live, locked native thread.

Jump to

Keyboard shortcuts

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