Date: Wed, 31 Aug 2022 01:32:19 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1ba0642c01e2 - stable/13 - fork_exit(): style comment Message-ID: <202208310132.27V1WJID033315@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1ba0642c01e2d9ba44459852b4901b89c29145ac commit 1ba0642c01e2d9ba44459852b4901b89c29145ac Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-08-21 23:14:02 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208310132.27V1WJID033315>