Skip to main content

Module interrupt

Module interrupt 

Source
Expand description

Graceful Ctrl-C for decdn fetch and decdn bundle pull.

The first Ctrl-C resolves Interrupt::wait: the command stops its transfers, writes what it must keep (the bundle skip-cache, the progress indicators’ cleanup), and returns Interrupted, which exits with status 130. A second Ctrl-C, or one that arrives after the command stops watching, exits at once with the same status.

Stopping mid-transfer loses nothing already paid for: every fetch resumes from its on-disk .partial on the next run.

Structs§

Interrupted
The error a command returns when Ctrl-C stopped it. main prints a resume hint and exits with status 130 (128 + SIGINT), the shell convention for an interrupted command.

Constants§

GAVE_UP_EXIT
The exit status for a fetch that gave up after its no-progress limit: EX_TEMPFAIL, since a rerun resumes it.
INTERRUPTED_EXIT
The exit status for an interrupted command: 128 + SIGINT.