diff options
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r-- | sys/kern/kern_fork.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 9c5597e..a12ed64 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -205,9 +205,6 @@ fork1(td, flags, pages, procp) struct filedesc *fd; struct filedesc_to_leader *fdtol; struct thread *td2; -#ifdef KSE - struct ksegrp *kg2; -#endif struct sigacts *newsigacts; int error; @@ -477,9 +474,6 @@ again: * then copy the section that is copied directly from the parent. */ td2 = FIRST_THREAD_IN_PROC(p2); -#ifdef KSE - kg2 = FIRST_KSEGRP_IN_PROC(p2); -#endif /* Allocate and switch to an alternate kstack if specified. */ if (pages != 0) @@ -492,19 +486,11 @@ again: __rangeof(struct proc, p_startzero, p_endzero)); bzero(&td2->td_startzero, __rangeof(struct thread, td_startzero, td_endzero)); -#ifdef KSE - bzero(&kg2->kg_startzero, - __rangeof(struct ksegrp, kg_startzero, kg_endzero)); -#endif bcopy(&p1->p_startcopy, &p2->p_startcopy, __rangeof(struct proc, p_startcopy, p_endcopy)); bcopy(&td->td_startcopy, &td2->td_startcopy, __rangeof(struct thread, td_startcopy, td_endcopy)); -#ifdef KSE - bcopy(&td->td_ksegrp->kg_startcopy, &kg2->kg_startcopy, - __rangeof(struct ksegrp, kg_startcopy, kg_endcopy)); -#endif td2->td_sigstk = td->td_sigstk; td2->td_sigmask = td->td_sigmask; @@ -526,11 +512,7 @@ again: mtx_unlock_spin(&sched_lock); p2->p_ucred = crhold(td->td_ucred); -#ifdef KSE - td2->td_ucred = crhold(p2->p_ucred); /* XXXKSE */ -#else td2->td_ucred = crhold(p2->p_ucred); -#endif #ifdef AUDIT audit_proc_fork(p1, p2); #endif |