Skip to content

Commit

Permalink
unix::ExitStatus: Add comment saying that it's a wait status
Browse files Browse the repository at this point in the history
With cross-reference.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
  • Loading branch information
ijackson committed Nov 11, 2021
1 parent 79e52b3 commit d1df471
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/std/src/sys/unix/process/process_unix.rs
Expand Up @@ -616,6 +616,9 @@ impl Process {
}

/// Unix exit statuses
//
// This is not actually an "exit status" in Unix terminology. Rather, it is a "wait status".
// See the discussion in comments and doc comments for `std::process::ExitStatus`.
#[derive(PartialEq, Eq, Clone, Copy)]
pub struct ExitStatus(c_int);

Expand Down

0 comments on commit d1df471

Please sign in to comment.