_exit(2) should mention truncation of status
Jan Schaumann <[email protected]> Mon, 17 Oct 2022 14:57:12 -0400
| Newsgroups | gmane.os.netbsd.documentation |
|---|---|
| Message-ID | <[email protected]> |
--R5jrl+8qlnq/On4z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, exit(3) and wait(2) both mention that only the least significant 8 bits of the 'status' argument are returned to the parent process; _exit(2) does not mention that. I'd like to add the following note here (see attached diff). Arguments against: _exit(2) references wait(2), so users could in theory dig into that there and find it mentioned somewhere a few pages down. Arguments for: makes it much more obvious; OpenBSD has similar wording in https://man.openbsd.org/_exit. Any objections? -Jan --R5jrl+8qlnq/On4z Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="_exit.diff" ? ._exit.2.swp Index: _exit.2 =================================================================== RCS file: /cvsroot/src/lib/libc/sys/_exit.2,v retrieving revision 1.18 diff -r1.18 _exit.2 32c32 < .Dd April 23, 2002 --- > .Dd October 17, 2022 70a71,74 > (Note that only the least significant 8 bits of > .Em status > are preserved and returned to the parent via > .Xr wait 2 Ns .) --R5jrl+8qlnq/On4z--