Function handle_interrupt
Source pub fn handle_interrupt(
r: Arc<AtomicBool>,
output: &str,
) -> Result<(), Box<dyn Error>>
Expand description
Handles interrupt signals and finalizes the CSV output.
§Arguments
r - An Arc<AtomicBool> used to monitor interrupt signals.
output - The file path to save the final scan results as a CSV file.
§Returns
A Result<(), Box<dyn std::error::Error>> indicating success or failure.