findlargedir 0.5.2

find all blackhole directories with a huge amount of filesystem entries in a flat structure
use anyhow::{Context, Error};
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;

/// Termination signal handler subscribed to SIGINT, SIGTERM and SIGHUP
pub fn setup_interrupt_handler(shutdown: Arc<AtomicBool>) -> Result<(), Error> {
    ctrlc::set_handler(move || {
        shutdown.store(true, Ordering::SeqCst);
    })
    .context("Unable to set Ctrl-C handler")?;

    Ok(())
}