brk_exit

Crates.iobrk_exit
lib.rsbrk_exit
version0.0.83
created_at2025-02-27 11:10:30.266162+00
updated_at2025-07-26 21:36:36.888637+00
descriptionAn exit blocker built on top of ctrlc
homepagehttps://bitcoinresearchkit.org
repositoryhttps://github.com/bitcoinresearchkit/brk
max_upload_size
id1571615
size22,302
(nym21)

documentation

README

BRK Exit

GitHub Repo stars License Version Documentation Size Dependency status Discord Nostr Bluesky X

A simple crate that stops the program from exitting when blocking is activated until it is released. The purpose of that is to prevent exitting when a program is in the middle of saving data and thus prevent partial writes.

It's built on top of ctrlc which handles Ctrl + C (SIGINT), stopping the program using the kill command (SIGTERM) and closing the terminal (SIGHUP) but it doesn't support force kills (kill -9).

Commit count: 742

cargo fmt