From d1df4715ec851f7e8b019b4ed0fca14bac1dacc9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 8 Nov 2021 17:38:01 +0000 Subject: unix::ExitStatus: Add comment saying that it's a wait status With cross-reference. Signed-off-by: Ian Jackson --- library/std/src/sys/unix/process/process_unix.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'library/std/src/sys/unix/process/process_unix.rs') diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 99013efb495..7e674910f8e 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -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); -- cgit 1.4.1-3-g733a5