Skip to content

Commit 79e52b3

Browse files
committed
unix::ExitStatusExt: Correct reference to _exit system call
As discussed here rust-lang#88300 (comment) exit is (conventionally) a library function, with _exit being the actual system call. I have checked the other references and they say "if the process terminated by calling `exti`". I think despite the slight imprecision (strictly, it should read iff ... `_exit`), this is clearer. Anyone who knows about the distinction between `exit` and `_exit` will not be confused. `_exit` is the correct traditional name for the system call, despite Linux calling it `exit_group` or `exit`: https://www.freebsd.org/cgi/man.cgi?query=_exit&sektion=2&n=1 Signed-off-by: Ian Jackson <[email protected]>
1 parent 3e3890c commit 79e52b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/os/unix/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl CommandExt for process::Command {
207207
/// [`ExitStatusError`](process::ExitStatusError).
208208
///
209209
/// On Unix, `ExitStatus` **does not necessarily represent an exit status**, as
210-
/// passed to the `exit` system call or returned by
210+
/// passed to the `_exit` system call or returned by
211211
/// [`ExitStatus::code()`](crate::process::ExitStatus::code). It represents **any wait status**
212212
/// as returned by one of the `wait` family of system
213213
/// calls.

0 commit comments

Comments
 (0)