Date: Fri, 3 May 2002 11:44:30 -0700 (PDT) From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 10750 for review Message-ID: <200205031844.g43IiUV44448@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=10750 Change 10750 by julian@julian_jules1 on 2002/05/03 11:43:59 Make it compile.. May still not work Affected files ... ... //depot/projects/kse/sys/kern/kern_fork.c#64 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_fork.c#64 (text+ko) ==== @@ -419,7 +419,8 @@ lastpid = trypid; p2 = newproc; - p2->p_stat = SIDL; /* protect against others */ + p2->p_state = PRS_NEW; /* protect against others */ + p2->p_sflag = PS_INMEM; p2->p_pid = trypid; LIST_INSERT_HEAD(&allproc, p2, p_list); LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); @@ -457,7 +458,7 @@ * Start by zeroing the section of proc that is zero-initialized, * then copy the section that is copied directly from the parent. */ - td2 = thread_alloc(p2); + td2 = thread_alloc(); if (td2 == NULL) { /* XXX need to take out of pid hash I think */ uma_zfree(proc_zone, p2); @@ -505,12 +506,9 @@ * all returns to userland until completed) * This is wrong but ok for 1:1. */ - */ proc_linkup(p2, kg2, ke2, td2); /* Set up the thread as an active thread. As if runnable */ - p2->p_state = PRS_NEW; /* protect against others */ - p2->p_sflag = PS_INMEM; ke2->ke_thread = td2; td2->td_kse = ke2; TAILQ_REMOVE(&kg2->kg_iq, ke2, ke_kgrlist); @@ -718,7 +716,6 @@ p2->p_acflag = AFORK; if ((flags & RFSTOPPED) == 0) { mtx_lock_spin(&sched_lock); - p2->p_stat = SRUN; setrunqueue(td2); mtx_unlock_spin(&sched_lock); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205031844.g43IiUV44448>