_exit.2: Cross-reference atexit(3)

atexit(3) is one of the cases when _exit(2) must be used instead of
exit(3).

MFC after:		3 days
Reviewed by:		mhorne, ziaee
Differential Revision:	https://reviews.freebsd.org/D54467
This commit is contained in:
Artem Bunichev
2026-03-31 13:09:00 -04:00
committed by Alexander Ziaee
parent 407b1e4980
commit c082e56564
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd September 6, 2002
.Dd March 31, 2026
.Dt ATEXIT 3
.Os
.Sh NAME
@@ -90,6 +90,7 @@ function was called by a program that did not supply a
implementation.
.El
.Sh SEE ALSO
.Xr _exit 2 ,
.Xr at_quick_exit 3 ,
.Xr exit 3
.Sh STANDARDS
+5 -4
View File
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd September 8, 2016
.Dd March 31, 2026
.Dt EXIT 2
.Os
.Sh NAME
@@ -95,9 +95,9 @@ and all current access to the controlling terminal is revoked.
.Pp
Most C programs call the library routine
.Xr exit 3 ,
which flushes buffers, closes streams, unlinks temporary files, etc.,
before
calling
which flushes buffers, closes streams, unlinks temporary files, invokes
.Xr atexit 3
handlers, etc., before calling
.Fn _exit .
.Sh RETURN VALUES
The
@@ -108,6 +108,7 @@ can never return.
.Xr fork 2 ,
.Xr sigaction 2 ,
.Xr wait 2 ,
.Xr atexit 3 ,
.Xr exit 3 ,
.Xr init 8
.Sh STANDARDS