11 releases
Uses new Rust 2024
new 0.0.12 | Apr 2, 2025 |
---|---|
0.0.11 | Mar 31, 2025 |
0.0.2 | Feb 27, 2025 |
#200 in Operating systems
796 downloads per month
Used in 6 crates
(5 directly)
14KB
126 lines
BRK Exit
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
).
Dependencies
~8–16MB
~192K SLoC