We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Safety
unsafe
1 parent 3005fef commit 6b4e22fCopy full SHA for 6b4e22f
src/main.rs
@@ -790,6 +790,7 @@ async fn send(args: SendArgs) -> anyhow::Result<()> {
790
.unwrap_or_else(|e| eprintln!("Failed to end process: {e}"));
791
792
#[cfg(windows)]
793
+ // Safety: Raw syscall to re-send the Ctrl+C event to the console
794
if unsafe { GenerateConsoleCtrlEvent(CTRL_C_EVENT, 0) } == 0 {
795
eprintln!("Failed to end process: {}", std::io::Error::last_os_error());
796
}
0 commit comments