diff options
Diffstat (limited to 'src/platform/windows.rs')
| -rw-r--r-- | src/platform/windows.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/platform/windows.rs b/src/platform/windows.rs index ce0afedb..4deb1864 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -15,6 +15,15 @@ use std::{ mod clipboard_image; +pub(crate) fn classify_child_exit(status: &portable_pty::ExitStatus) -> super::ChildExitReason { + // STATUS_CONTROL_C_EXIT is reported without a Unix signal by portable-pty. + if status.exit_code() == 0xC000013A { + super::ChildExitReason::Interrupted + } else { + super::ChildExitReason::Exited + } +} + pub(crate) fn wait_client_stream_readable( _stream: &crate::ipc::LocalStream, ) -> std::io::Result<()> { |
