Documentation
¶
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.