Proper ctrl+c handling in Windows (fix #508)

This commit is contained in:
Roey Darwish Dror
2020-08-26 22:30:19 +03:00
parent 4657160f80
commit 1317e51096
7 changed files with 53 additions and 35 deletions

View File

@@ -1,11 +1,13 @@
//! Provides handling for process interruption.
//! There's no actual handling for Windows at the moment.
mod interrupted;
#[cfg(unix)]
mod unix;
#[cfg(unix)]
pub use self::unix::*;
pub use self::unix::set_handler;
#[cfg(windows)]
mod windows;
#[cfg(windows)]
pub use self::windows::*;
pub use self::windows::set_handler;
pub use self::interrupted::*;