From owner-p4-projects Fri May 3 11:44:39 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5262837B419; Fri, 3 May 2002 11:44:32 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CEAF037B41A for ; Fri, 3 May 2002 11:44:30 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g43IiUV44448 for perforce@freebsd.org; Fri, 3 May 2002 11:44:30 -0700 (PDT) (envelope-from julian@freebsd.org) Date: Fri, 3 May 2002 11:44:30 -0700 (PDT) Message-Id: <200205031844.g43IiUV44448@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer Subject: PERFORCE change 10750 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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