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.
1 parent 5a315ed commit 85ee0edCopy full SHA for 85ee0ed
src/utils/parse.rs
@@ -128,9 +128,17 @@ pub mod shell_command {
128
#[async_trait]
129
impl ChildUnify for SmolChild {
130
async fn wait(mut self) -> AnyResult<ExitStatus> {
131
- Ok(ExitStatus::from_raw(
132
- self.status().await?.code().unwrap_or(1),
133
- ))
+ #[cfg(target_family = "windows")]
+ {
+ return Ok(ExitStatus::from_raw(
134
+ self.status().await?.code().unwrap_or(1) as u32,
135
+ ));
136
+ }
137
+
138
+ #[cfg(target_family = "unix")]
139
140
+ self.status().await?.code().unwrap_or(-1),
141
142
}
143
144
async fn wait_with_output(self) -> AnyResult<Output> {
0 commit comments