rust-ctrlc icon indicating copy to clipboard operation
rust-ctrlc copied to clipboard

Easy Ctrl-C handler for Rust projects

Results 26 rust-ctrlc issues
Sort by recently updated
recently updated
newest added

These still need documentation and reducing the size of `unsafe` blocks. However, the functionality is there and I haven't found any bugs. I've tested the implementation on Linux, Windows, and...

A common pattern when handling `Ctrl+C` is setting a flag in the handler and polling the flag somewhere else in the application. The current API does allow you to implement...

Trying to use the crate I manage to set a handler with some clean up code. When a signal is caught, the handler is indeed executed, but it's killed half...

`ctrlc` doesn't work as I would expect it to when SIGINT is sent while the main thread blocks waiting for IO. Consider this example: ```rust use std::net::TcpListener; use std::sync::Arc; use...

`winapi` is a community-maintained crate for windows bindings that has received only a single update in the last year. Microsoft has officially released their own set of bindings providing both...

I've converted this library to fully support asynchronous operations with the following capabilities - fully backwards compatible, as in synchronous code that uses this library will still work. - created...

![image](https://user-images.githubusercontent.com/86419969/123447941-fac38000-d60c-11eb-9e60-d4884af052b4.png) As you can see, the above image show ``$ $ Keyboard intterupt. Use `exit` to exit`` What I expect it to be is something like ```sh $ *ctrl+c* Keyboard...

Cargo will unify the features across crates, so if you have in your workspace two different crates that depend on `ctrlc`, one with `termination` feature enabled and other without, then...

This is in response to concerns raised by #21. Currently we only allow the user to register a single handler that gets called for both `SIGINT` and `SIGTERM`. There is...

One problem that has been mentioned(#24, #22) is that there is currently no way to unregister a signal handler. I suggest we solve this by building a new abstraction. This...