feat(cli): implement multi-applet binary dispatch and signal handling

This commit is contained in:
Nils Andreas Svee committed 2026-06-09 23:23:50 +07:00
1 parent d7cdcc5cee
commit 133ff71b72
4 files changed
+166 -608

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
use std::sync::{
atomic::{AtomicBool, Ordering},
Arc,
};
pub fn install_signal_handler(shutdown_requested: Arc<AtomicBool>) -> Result<(), ctrlc::Error> {
ctrlc::set_handler(move || {
shutdown_requested.store(true, Ordering::Relaxed);
})
}