about summary refs log tree commit diff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-11-08 17:28:02 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-11-11 17:48:03 +0000
commit79e52b3f1ea5038de95372b45ffcb523d6b462a2 (patch)
tree32ffa01950a0e3d492f216bee2c827fc9fa20df2 /library/std/src/sys/unix/process/process_unix.rs
parent3e3890c9d4064253aaa8c51f5d5458d2dc6dab77 (diff)
downloadrust-79e52b3f1ea5038de95372b45ffcb523d6b462a2.tar.gz
rust-79e52b3f1ea5038de95372b45ffcb523d6b462a2.zip
unix::ExitStatusExt: Correct reference to _exit system call
As discussed here
 https://github.com/rust-lang/rust/pull/88300#issuecomment-936085371

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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
0 files changed, 0 insertions, 0 deletions