Skip to content

Commit fe39fb3

Browse files
committed
process::ExitStatus: Discuss exit vs _exit in a comment.
As discussed here rust-lang#88300 (comment) I felt this was the best place to put this (rather than next to ExitStatusExt). After all, it's a property of the ExitStatus type on Unix. Signed-off-by: Ian Jackson <[email protected]>
1 parent d1df471 commit fe39fb3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/std/src/process.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,11 @@ impl From<fs::File> for Stdio {
14171417
///
14181418
/// [`status`]: Command::status
14191419
/// [`wait`]: Child::wait
1420+
//
1421+
// We speak slightly loosely (here and in various other places in the stdlib docs) about `exit`
1422+
// vs `_exit`. Naming of Unix system calls is not standardised across Unices, so terminology is a
1423+
// matter of convention and tradition. For clarity we usually speak of `exit`, even when we might
1424+
// mean an underlying system call such as `_exit`.
14201425
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
14211426
#[stable(feature = "process", since = "1.0.0")]
14221427
pub struct ExitStatus(imp::ExitStatus);

0 commit comments

Comments
 (0)