Skip to main content

Module stop

Module stop 

Source
Expand description

When a command gives up (ADR 039 § Failure handling: reassign-only tail): the progress clock and the stop policy that watches it. When a command gives up (ADR 039 § Failure handling: reassign-only tail, the stop policy).

The clock measures time since the last verified byte anywhere in the command, never time since the start. A command in a terminal has no limit: the human watches the bar and presses Ctrl-C. A script gets SCRIPT_GIVE_UP. --give-up-after-secs overrides both.

Structs§

ClockHold
Stops a ProgressClock while it lives. See ProgressClock::hold.
GaveUp
The command made no progress for idle and stopped. A rerun resumes.
ProgressClock
The instant of the command’s last verified byte.
StopPolicy
When the command stops for lack of progress.

Constants§

SCRIPT_GIVE_UP
The no-progress limit when stderr is not a terminal.