I'm writing a small shell for Windows in Rust, and want to kill the Command
I spawned and prevent my shell from quitting.
Is there a way of capturing the Windows SIGINT
equivalent in Rust?
I'm writing a small shell for Windows in Rust, and want to kill the Command
I spawned and prevent my shell from quitting.
Is there a way of capturing the Windows SIGINT
equivalent in Rust?
There is a crate, chan-signal
, that aims to help in handling this, by spawning a thread and having it wait for signals.
EDIT: It doesn't currently support windows.
There is an RFC asking for this functionality to be integrated into the language's standard library, but it is very young.
It seems your option is to go with FFI.