From nobody Wed Aug 31 01:32:19 2022 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 4MHRVr2K0xz4bqG1; Wed, 31 Aug 2022 01:32:20 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MHRVr1ZwTz3D1K; Wed, 31 Aug 2022 01:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661909540; 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=lU754dm9k2hdstib1aajxTbfj7khTEFEqIzFSJFabLI=; b=iIVFcRpB3LJ3I2q3/lcGC0T32nEwdTB2h7vKweuIBbxaFbrQeUCgcJbm+pjnp/2XKw4J2Z eY1B+GW6WjBfL46Ukkvs685ZnSg3rOJXFbRSpKfMouFqC4ojqLQDAGnkyz7mrKwWv6Xth/ eqgP589LBOgvx/BujqJCzIeG2ZEk1GzJUG1/d/JSExycfZAtPycdRcmFqkxpd9/doGxJKG 4WMlsfL0PmXX/PIvT373BBM5QZBHa8sLP30eRsjbnp2jKpZilEWLSIvFdtA3ysBLiN6/V4 bIuyCeRkVpxG1dg+hCbUfoPA5N9ViQ5bqvwoboIwohNDXG6vwLIek5QhyPyj+Q== 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 4MHRVr0ct6zyBY; Wed, 31 Aug 2022 01:32:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27V1WJUt033316; Wed, 31 Aug 2022 01:32:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27V1WJID033315; Wed, 31 Aug 2022 01:32:19 GMT (envelope-from git) Date: Wed, 31 Aug 2022 01:32:19 GMT Message-Id: <202208310132.27V1WJID033315@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: 1ba0642c01e2 - stable/13 - fork_exit(): style comment 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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/13 X-Git-Reftype: branch X-Git-Commit: 1ba0642c01e2d9ba44459852b4901b89c29145ac Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661909540; 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=lU754dm9k2hdstib1aajxTbfj7khTEFEqIzFSJFabLI=; b=Wgu1rDyjzt9/RduRC2QXLOa7YeKmkWLQeLsoje6r609TCfv5SnnbDoz+HYicLiTJeu0UnF ekZh8kaPuY7ZGyCZZyJaNmBU4y0qr+5iXgtWpSmJZ6SUgg3HLOkACLa3IxENBke+IoKjaC jy4sb/wEmLnqh0ItAATu4ake/nfigI1ImeyjuP4KwMv6vexWySmzCya0iY3azIWa75kBP4 3YQt6HCMypUxiHDyP4iwdVDo29KRQ8zOxZVezudy5Slg3EYu7xyKjgA1gl0qRrZ0lJtNrE jdNj9wFQxlOEuqmGQTLxcToKlMIMvT6f1OeztjRbR0OzKZnrnJMXemOOeIJcEw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661909540; a=rsa-sha256; cv=none; b=DleNHzSJxmxp74LU2cZ867erPjFR8ZlkBSivIJQJQLnHe2zz52Eco6tIMkJuff5z38Bwb6 IAITtXhl90EaDpyqBpzaC5gyJ4tSI/4DXghsLcO3Ga+bethpsvtDd27/hNWS236UZMVlib nj4JAw1bJjEWzYH4phc8UONvcAk+23y5856HzksvlqIGmi7H+xNi/7acQ2L1tG/zU+hRNN ve8+cHmeQVQJC4/ZzW0plqpT7CVP4m8G6kKzDoMJN3CWB8uPB1P4MHhpX4gN+WcSH66X1H xd6JEmWkM216n86dMAz6HP/ewnaHLgzGgV6YlogNkbL9aUuEOnqp0HZ60kqHrA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1ba0642c01e2d9ba44459852b4901b89c29145ac commit 1ba0642c01e2d9ba44459852b4901b89c29145ac Author: Konstantin Belousov AuthorDate: 2022-08-21 23:14:02 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-31 01:20:28 +0000 fork_exit(): style comment (cherry picked from commit fce3b1c327937085f0df4964ac15fc4b212913af) --- sys/kern/kern_fork.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index ae716fb056a6..7cca7050c0ff 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1083,11 +1083,12 @@ fork_exit(void (*callout)(void *, struct trapframe *), void *arg, td, td_get_sched(td), p->p_pid, td->td_name); sched_fork_exit(td); + /* - * Processes normally resume in mi_switch() after being - * cpu_switch()'ed to, but when children start up they arrive here - * instead, so we must do much the same things as mi_switch() would. - */ + * Processes normally resume in mi_switch() after being + * cpu_switch()'ed to, but when children start up they arrive here + * instead, so we must do much the same things as mi_switch() would. + */ if ((dtd = PCPU_GET(deadthread))) { PCPU_SET(deadthread, NULL); thread_stash(dtd);