Henning Ottesen
Henning Ottesen
This crate tries to do cross-platform ctrl-c handling, using signal deliver and EINTR as a way to interrupt blocking system calls is not cross-platform at all. The cross-platform way of...
If that doesn’t work, you can use a self-pipe and select() as you said, but you need to do everything yourself. ```rust extern crate nix; use nix::sys::signal; use nix::sys::select; use...
I agree that this should be documented. I may write it if I have time. Other people have raised the same problem before. We have discussed(#16, #20) a solution where...
Here is the equivalent code using [`tokio`](https://tokio.rs/) and [`tokio-signal`](https://github.com/alexcrichton/tokio-signal) for future documentation. ```rust extern crate futures; extern crate tokio_core; extern crate tokio_signal; extern crate tokio_io; use futures::{Stream, Future}; use tokio_core::reactor::Core;...
I will try to submit implementations later this week.
What are your thoughts on #26, should we add a “Signal” enum. It would make sense for the channel to return something on read. If so what should is look...
This is related to how mintty [interacts with programs that use the native Windows API for command-line user interaction](https://github.com/mintty/mintty/wiki/Tips#inputoutput-interaction-with-alien-programs). A workaround is to use [winpty](https://github.com/rprichard/winpty) which wraps your program and...
~~I noticed something funny, mintty/msys2 ignores `CTRL+BREAK`, while we treat `CTRL+BREAK` the same as `CTRL+C`. This means `CTRL+BREAK` works as expected under mintty/msys2 even though `CTRL+C` is broken.~~ **Edit**: Never...
Yes, it's the same bug. msys2 is based on cygwin, both use mintty.
Regardless of if we choose to expose `SA_RESTART`, we should be using `sigaction()` instead of `signal()`. `signal()` is essentially deprecated in favor of `sigaction()`.