From owner-p4-projects Mon Jun 10 8:20:20 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 799CC37B406; Mon, 10 Jun 2002 08:20:10 -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 96CA837B40C for ; Mon, 10 Jun 2002 08:20:09 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5AFK9G59867 for perforce@freebsd.org; Mon, 10 Jun 2002 08:20:09 -0700 (PDT) (envelope-from julian@freebsd.org) Date: Mon, 10 Jun 2002 08:20:09 -0700 (PDT) Message-Id: <200206101520.g5AFK9G59867@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer Subject: PERFORCE change 12655 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=12655 Change 12655 by julian@julian_jules1 on 2002/06/10 08:19:58 more fixes to suspension Affected files ... ... //depot/projects/kse/sys/kern/kern_thread.c#60 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_thread.c#60 (text+ko) ==== @@ -196,14 +196,19 @@ if (kg != NULL) TAILQ_REMOVE(&kg->kg_threads, td, td_kglist); p->p_numthreads--; +#if 0 if (P_SHOULDSTOP(p) == P_STOPPED_SNGL) { - if (p->p_numthreads == - ((p->p_flag & P_SINGLE_EXIT) ? 1 : - (p->p_suspcount + 1))) { + if (p->p_numthreads == ((p->p_flag & P_SINGLE_EXIT) ? + 1 : p->p_suspcount)) { + TAILQ_REMOVE(&p->p_suspended, + p->p_singlethread, td_runq); setrunqueue(p->p_singlethread); - p->p_singlethread = NULL; + p->suspcount--; } } +#else + thread_unsuspend(p); /* see if it is there yet */ +#endif } if (kg != NULL) kg->kg_numthreads--; @@ -434,6 +439,7 @@ break; /* etc. XXXKSE */ default: + ; } } /* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message