git: fce3b1c32793 - main - fork_exit(): style comment
Date: Wed, 24 Aug 2022 19:25:18 UTC
The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=fce3b1c327937085f0df4964ac15fc4b212913af commit fce3b1c327937085f0df4964ac15fc4b212913af Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-08-21 23:14:02 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> 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);