Skip to content

Commit 7902405

Browse files
committed
Incorporate warning for potential exit code ambiguities
1 parent ff39e00 commit 7902405

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

std/src/os/windows/process.rs

+4
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ impl ChildExt for process::Child {
203203
pub trait ExitCodeExt: Sealed {
204204
/// Creates a new `ExitCode` from the raw underlying `u32` return value of
205205
/// a process.
206+
///
207+
/// The exit code should not be 259, as this conflicts with the `STILL_ACTIVE`
208+
/// macro returned from the `GetExitCodeProcess` function to signal that the
209+
/// process has yet to run to completion.
206210
#[stable(feature = "windows_process_exit_code_from", since = "1.63.0")]
207211
fn from_raw(raw: u32) -> Self;
208212
}

0 commit comments

Comments
 (0)