From nobody Wed Aug 21 10:33:24 2024 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 4WpjNN3Q4Vz5Tdmn; Wed, 21 Aug 2024 10:33:24 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WpjNN19fTz4pgx; Wed, 21 Aug 2024 10:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724236404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rPR5H3Py6zdwjwc3GAp81EgZs1pFQKYog1KPf0usFqE=; b=EF/1s/TKkpqa9fWgb3XBq/3jVK+CbVKcfIVjCJenQkXRIs7X9i/bGqQihRmQl/d4ttX5pz lxHpg0sjsubo0vnEKM25rUQzkfNhPZSFBvWgdpLBZdidV5DUProJehTud/iqU/74qZsjMV hZLoLT9+3yDzwX4/v44ZPc17dBPdsUjTZ0V7n43mrLQSwLVZ5NcCZkWu0N2Gq6WZykvbjW dH7Y2c0/7y/TU8Hp4K6bNug/KFQC3MUtZ134YOU018Xnux/wGstxXr87923096UKU6+gU4 AvCdbZAnvu37RGgXavxVyIiWHz5vEhbHabrc1/QIPRjQBBI6Wyv/ofK5MDzMeQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724236404; a=rsa-sha256; cv=none; b=s0jIf7jqEnYiHRSZrSSsUbyZsxF/4A5r6bKST8AraOx1kJnw+9FqwXkzRL7xsk+dWMXoie 96WhCAAcExWVgw3kIDLZerIgwp4vH2Hc1dbjPbFtwgeahAufVfx7MAU7t/5RLbQ8DxCeoy BOzUuKPaw5v62A8vkNQtJyna2tKNq1FVv0DHFdGZQkOSvd00hRE7uMvDRioDLINk87gUtz i7XOxryGpsrtTVaGh6O11CvZXZZkXd/IZePUwEEmY0tOm/uN4n1WyGxf26kdz82fO4KBax ywrInFUD1ISvg9tUTqwlzvdxYhYvvCyEbhOCNXjgM7sGjVYBwWehbT0yTlHBrA== 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=1724236404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rPR5H3Py6zdwjwc3GAp81EgZs1pFQKYog1KPf0usFqE=; b=I7psuPvt03MEDZA2g5ebVAuYe3geE6sxKTVrxTnyFXQtbExtdhEg0saoHUHSw5j1lHW105 Lir5OzJ4PfaKMnGM+mOx03xynau6D/g71x+zaulWQvhXjUW+RZJUYX0SrYadxc9KH8PKeF EPnlgbdQDd16508FUZGKDGr/5c3TzQ/CjFTHiL2IJeCoo8iSix/LyutpN4wmgKiRewzOjm sE43U3fDgXLd/bFRWAjWe5XTlOhCbyY57bJIipjS4al2AooSAtJaJidUWuxYdD2vEnbveq CguJhAwFQmM0vfW0/QMoEvikZBWXIhZnKDZVVKwjBryuG2S7DeoafL36OAHNmg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WpjNN0f58zg3T; Wed, 21 Aug 2024 10:33:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47LAXOKi078465; Wed, 21 Aug 2024 10:33:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47LAXOwl078462; Wed, 21 Aug 2024 10:33:24 GMT (envelope-from git) Date: Wed, 21 Aug 2024 10:33:24 GMT Message-Id: <202408211033.47LAXOwl078462@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 2a1e8d7c30c9 - stable/14 - exit(3): clarify how to obtain full exit status of the exited process 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2a1e8d7c30c90e17fccaeec89e4963a8d825063d Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=2a1e8d7c30c90e17fccaeec89e4963a8d825063d commit 2a1e8d7c30c90e17fccaeec89e4963a8d825063d Author: Konstantin Belousov AuthorDate: 2024-07-25 17:28:45 +0000 Commit: Konstantin Belousov CommitDate: 2024-08-21 10:32:49 +0000 exit(3): clarify how to obtain full exit status of the exited process (cherry picked from commit c4269e63ecf301306a6176b9fe9002c4c2265695) --- lib/libc/stdlib/exit.3 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/libc/stdlib/exit.3 b/lib/libc/stdlib/exit.3 index c190f5fac27f..2fb3ab165dae 100644 --- a/lib/libc/stdlib/exit.3 +++ b/lib/libc/stdlib/exit.3 @@ -103,6 +103,20 @@ values described in .Xr sysexits 3 may be used to provide more information to the parent process. .Pp +The complete +.Fa status +value is avaliable as +.Va si_status +member of the +.Vt siginfo_t +structure, to the +.Xr wait6 2 +and +.Xr sigwaitinfo 2 +callers, and +.Va SIGCHLD +signal handlers. +.Pp Calls to the .Fn exit function are serialized.