From nobody Wed Aug 24 19:25:18 2022 X-Original-To: dev-commits-src-main@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 4MCbf65g4jz4Zffm; Wed, 24 Aug 2022 19:25:18 +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 4MCbf652Qtz3PsN; Wed, 24 Aug 2022 19:25:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661369118; 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=hYMMkykffljOamJ3c2Zpj4bEfKwqWMmaTds1ztKrOSg=; b=FnBJDBvTgwa0yh55XDYa1ZzjAUvquIaVV1lRioA0+oYR6rMJptUOOlRVWWcajAXw4WTwS6 rPFoXvtgsdaZgqHG3gbG+hVpBsXbXiAFZGi0Bg2T/+X/FfIdPqaJ7NfXeH7Bf9XoOJpT1y MWKzGdK1Q8cE/fRMik3ZKq02WioZZP5gp3RwD6VVA/emf9tq9sRJdthVZW+KFwXL5ltSGJ v4NBPwpxh72arCW0U1He+++hTONZLu3Bll2jywaXrqsg+AMUGd70sQw8288/L+SG2ZSLyy GrnYuY4d1UGC8wcov+rZixU35PHuSsmkURasUO011kUCDH5XK3i3INycEssRXQ== 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 4MCbf6460szKvS; Wed, 24 Aug 2022 19:25:18 +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 27OJPIi6069317; Wed, 24 Aug 2022 19:25:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27OJPIif069316; Wed, 24 Aug 2022 19:25:18 GMT (envelope-from git) Date: Wed, 24 Aug 2022 19:25:18 GMT Message-Id: <202208241925.27OJPIif069316@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: fce3b1c32793 - main - fork_exit(): style comment List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: fce3b1c327937085f0df4964ac15fc4b212913af Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661369118; 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=hYMMkykffljOamJ3c2Zpj4bEfKwqWMmaTds1ztKrOSg=; b=S3UiXWcMWHdkIMlgjfzvjjmikZYFLX/0InmXv/MUcqlY1oeqVCnDgm1aO4HfghVw0OA4OZ /9DodNMk9TgwvVGOAUoNXCroqE3d+0oe+yl0oPFJzhwYnfQqDfpM+2nkC2H3Am/YTlpQqp qNA3SXaFlsCwdXIOmEyAIuOeofXLiRl6O8GRZ5ZErB6BoFz5fOOubYUo4+nh2Tzo9Yzd0q qRZVLjKR5y4UWTyB9bt5fcHoIw/aLYvi8Oy/A2vSR29EpEqJi6rmZJUmZu1Qk6uL8alFZW lGEr/eTUGWY94yXWsqs0j9IiVZVgQI21csAfVdGeS3p3cpWHwadajmMMm2RTpg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661369118; a=rsa-sha256; cv=none; b=GuZZ745sw9Xax/PQA1DBaSHmCDGdTDfg5PGS+1D2eDiD1cqwZjF+w8oXjFjiM+v493uH4z kWvN/m2WVlQkPPq1Vwu3l00mLYpcdUPb+xHJGS7mgs0KsWOfxJZB2ThkgHNkja8Lw7mDwd LqnUda7V3I9PWr3uUGCgc6CVg0YzTEEsGaJUqixVmyrd68FrJsvJg5odcr1lU75BFd857A aUYmuvyzPGu172uIOwtQHn6XCdXD+tsymnNu99YSPTtd/ohWTVMNNOoY+Ozdb4J1r9Uvo1 8o0kIkgc/a4HnSahtWbxfuVvy86yIH7h29j1887GihqTIt8ia9zthTP7Mr7/6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fce3b1c327937085f0df4964ac15fc4b212913af commit fce3b1c327937085f0df4964ac15fc4b212913af Author: Konstantin Belousov AuthorDate: 2022-08-21 23:14:02 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-24 19:12:53 +0000 fork_exit(): style comment Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36302 --- 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 b4f96686caba..58f386f20544 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -1080,11 +1080,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);