From owner-cvs-all@FreeBSD.ORG Mon Mar 31 17:26:21 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AADC737B401; Mon, 31 Mar 2003 17:26:21 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 595A943FBD; Mon, 31 Mar 2003 17:26:21 -0800 (PST) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h311QL0U050454; Mon, 31 Mar 2003 17:26:21 -0800 (PST) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h311QLxt050453; Mon, 31 Mar 2003 17:26:21 -0800 (PST) Message-Id: <200304010126.h311QLxt050453@repoman.freebsd.org> From: Jeff Roberson Date: Mon, 31 Mar 2003 17:26:21 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_exec.c kern_exit.c kern_fork.c kern_synch.c kern_thread.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 01:26:22 -0000 jeff 2003/03/31 17:26:21 PST FreeBSD src repository Modified files: sys/kern kern_exec.c kern_exit.c kern_fork.c kern_synch.c kern_thread.c Log: - Borrow the KSE single threading code for exec and exit. We use the check if (p->p_numthreads > 1) and not a flag because action is only necessary if there are other threads. The rest of the system has no need to identify thr threaded processes. - In kern_thread.c use thr_exit1() instead of thread_exit() if P_THREADED is not set. Revision Changes Path 1.218 +1 -1 src/sys/kern/kern_exec.c 1.208 +4 -2 src/sys/kern/kern_exit.c 1.189 +5 -0 src/sys/kern/kern_fork.c 1.216 +1 -1 src/sys/kern/kern_synch.c 1.111 +7 -3 src/sys/kern/kern_thread.c