fork_exit(): style comment
Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36302
This commit is contained in:
parent
ff32a05554
commit
fce3b1c327
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user