From owner-cvs-all@FreeBSD.ORG Fri Apr 18 13:17:06 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 0013637B401; Fri, 18 Apr 2003 13:17:05 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 940E743F85; Fri, 18 Apr 2003 13:17:05 -0700 (PDT) (envelope-from jhb@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 h3IKH50U034801; Fri, 18 Apr 2003 13:17:05 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3IKH5CK034800; Fri, 18 Apr 2003 13:17:05 -0700 (PDT) Message-Id: <200304182017.h3IKH5CK034800@repoman.freebsd.org> From: John Baldwin Date: Fri, 18 Apr 2003 13:17:05 -0700 (PDT) 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_proc.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: Fri, 18 Apr 2003 20:17:06 -0000 jhb 2003/04/18 13:17:05 PDT FreeBSD src repository Modified files: sys/kern kern_proc.c Log: - Add a static function pgadjustjobc() to adjust the job control count for a process group. - Call pgadjustjobc() twice in fixjobc() to avoid code duplication and improve readability. - Use the proc lock to protect P_SHOULDSTOP() instead of sched_lock. - Check to see if a process is PRS_NEW with sched_lock before trying to lock its proc lock since the lock may not be constructed yet. Revision Changes Path 1.179 +42 -36 src/sys/kern/kern_proc.c