From owner-cvs-src@FreeBSD.ORG Thu Jul 3 19:21:29 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8235037B401; Thu, 3 Jul 2003 19:21:29 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E85044017; Thu, 3 Jul 2003 19:21:29 -0700 (PDT) (envelope-from cognet@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 h642LS0U015262; Thu, 3 Jul 2003 19:21:28 -0700 (PDT) (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h642LSTJ015258; Thu, 3 Jul 2003 19:21:28 -0700 (PDT) Message-Id: <200307040221.h642LSTJ015258@repoman.freebsd.org> From: Olivier Houchard Date: Thu, 3 Jul 2003 19:21:28 -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_prot.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2003 02:21:29 -0000 cognet 2003/07/03 19:21:28 PDT FreeBSD src repository Modified files: sys/kern kern_prot.c Log: In setpgrp(), don't assume a pgrp won't exist if the provided pgid is the same as the target process' pid, it may exist if the process forked before leaving the pgrp. Thix fixes a panic that happens when calling setpgid to make a process re-enter the pgrp with the same pgid as its pid if the pgrp still exists. Revision Changes Path 1.174 +13 -12 src/sys/kern/kern_prot.c