Documentation
¶
Overview ¶
Package interrupt is how an interrupted physa init ends: the command's context was cancelled (SIGINT or SIGTERM), so init started nothing more, the sessions running were stopped through that context, and what was already finished stays in init's record. It says so, says what was kept and the line that continues, and gives the code to exit with.
Index ¶
Constants ¶
const Code = 130
Code is the exit code of an interrupted run, the one shells give a run SIGINT ended. It tells an interrupt apart from the cap's stop (1) and a failure (2).
Variables ¶
This section is empty.
Functions ¶
func Interrupted ¶
Interrupted reports whether ctx, the command's context, was cancelled.
func Kept ¶
Kept is what an interrupted recovery kept: the n capabilities this run recovered, stored in init's record beside any an earlier run kept, which recovery said when it started.
func Line ¶
Line is what init prints after "physa init: " when a run was interrupted: nothing more was started, the sessions running were stopped, what was kept, and continueLine to continue.
Types ¶
This section is empty.