From nobody Tue Mar 31 17:16:32 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4flZXk0m6Zz6WP7S for ; Tue, 31 Mar 2026 17:16:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4flZXj4KLjz49qB for ; Tue, 31 Mar 2026 17:16:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774977397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VwGEe+qrT4WjyUQyjyPsMoCU8Tllma+nmzj2slM5BsE=; b=T2dvVsynhiA2tMBEPEUNRxtn4fdSLFGNULnitlzOGx/Ng9KZVFloZx1wkw0yNXPnaWci5F J/PzTDaaWjwobOc6p2XZ/QqCIQ24A6NOCQUkhoWIz1SQEnMXIpplDqPPG1nH89vGpDXGbF 35V0BKNkRFHksSQszWzU/R1slxfCInY5sB3Z5EvJ7mjDZPuDpQkvcVVUWmjNmUxdBypIWH srxrQTE65gTqqWAHuEa9N5VI29z2hC0mvnKMkUEbZaJyhfWBg5+pKFh7j1UTBBKonZ1jLg PzHaYQDV9srkt5n6mmgfjy07B4JcF8cYU6p4HgFMFCAgE4BHyM8mQWiPv9O5KA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1774977397; a=rsa-sha256; cv=none; b=n5Ab7s41D293Qg8wjgGRbr7sodBlsh8n8X9jSM6lxmX7lDEmtDfGLALfvP2RJixz2oGpip WXBsp0yfU7j9VGHwZCLEx60rXueu0fpzFhcmG/T1fdrHtCELjNIP1ak7PRH2z+XPuw53ys 4ICVRj9Wjv0rZah7C1mFuXwMN8cQMX3g1VpN5wEibaYpoGYmlbpML/abBKbBwiYPe8L2mB N5tC/isVf58Gc5x1Ch2oSPgOGVuLVAIvPGIj1XZITq9oBAY0Oyz+ss2AXDRiDqF4YJ24wK 3un2Q+JUcosVjRS0quIjOssDdjnaKB6onxoVuVctxd1DCHSxRJr0k0Fy7mN5Aw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1774977397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VwGEe+qrT4WjyUQyjyPsMoCU8Tllma+nmzj2slM5BsE=; b=AYCcksShtK5RryqjlVp1KqsN3BYutGN4gozzLfj5I2N10wcvo/HYONCsyTOqJ5gTiPzcCw hw0mmwqZur7gYgl/bKUcMhsfhDs0pWWDL1l2wwFUNMmRDv2YJlP5QxAGXODWv+sTht8X1L rViRfar0aisFYV/YkwcR4dO+KvmUjXXLjg9EZn8Dz0EYZrPZRQo952ItrKkjAGFR63xset KYgx8wRVBznldnRUkbKwdRo+P+JUsBSWPwFov7wUl/PjR3dhQkX6tx4eCO8k41quVFEWl+ v0wmaGvDyXOUS5CzrLqEpiuDn2PlTQoE1ItM/1T71MpRHTNww54pQ593AxAGpQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4flZXj3vfszfhZ for ; Tue, 31 Mar 2026 17:16:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 41da3 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 31 Mar 2026 17:16:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Cc: Artem Bunichev From: Alexander Ziaee Subject: git: c082e5656417 - main - _exit.2: Cross-reference atexit(3) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ziaee X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c082e5656417945bfa567114c60969844f3d7bdf Auto-Submitted: auto-generated Date: Tue, 31 Mar 2026 17:16:32 +0000 Message-Id: <69cc0170.41da3.180fe0ca@gitrepo.freebsd.org> The branch main has been updated by ziaee: URL: https://cgit.FreeBSD.org/src/commit/?id=c082e5656417945bfa567114c60969844f3d7bdf commit c082e5656417945bfa567114c60969844f3d7bdf Author: Artem Bunichev AuthorDate: 2026-03-31 17:09:00 +0000 Commit: Alexander Ziaee CommitDate: 2026-03-31 17:13:02 +0000 _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 --- lib/libc/stdlib/atexit.3 | 3 ++- lib/libsys/_exit.2 | 9 +++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/libc/stdlib/atexit.3 b/lib/libc/stdlib/atexit.3 index 4ff384813550..4082c887497c 100644 --- a/lib/libc/stdlib/atexit.3 +++ b/lib/libc/stdlib/atexit.3 @@ -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 diff --git a/lib/libsys/_exit.2 b/lib/libsys/_exit.2 index 6f038f79f6ea..6e46e65ac86e 100644 --- a/lib/libsys/_exit.2 +++ b/lib/libsys/_exit.2 @@ -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