// Copyright 2022 Martin Pool
//! Handle ctrl-c by setting a global atomic and checking it from long-running
//! operations.
use ;
use anyhow;
use crateResult;
static INTERRUPTED: AtomicBool = new;
/// Return an error if the program was interrupted and should exit.