From owner-cvs-all@FreeBSD.ORG Fri Jan 9 15:42:37 2004 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 EB14416A4CE; Fri, 9 Jan 2004 15:42:37 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9A9843D39; Fri, 9 Jan 2004 15:42:36 -0800 (PST) (envelope-from cognet@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i09Nga0B010602; Fri, 9 Jan 2004 15:42:36 -0800 (PST) (envelope-from cognet@repoman.freebsd.org) Received: (from cognet@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i09Ngaob010601; Fri, 9 Jan 2004 15:42:36 -0800 (PST) (envelope-from cognet) Message-Id: <200401092342.i09Ngaob010601@repoman.freebsd.org> From: Olivier Houchard Date: Fri, 9 Jan 2004 15:42:36 -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_fork.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, 09 Jan 2004 23:42:38 -0000 cognet 2004/01/09 15:42:36 PST FreeBSD src repository Modified files: sys/kern kern_fork.c Log: Prevent a race condition between fork1() and whatever changes the pgrp by setting the new process' p_pgrp again before inserting it in the p_pglist. Without it we can get the new process to be inserted in a different p_pglist than the one p2->p_pgrp points to, and this is not something we want to happen. This is not a fix, merely a bandaid, but it will work until someone finds a better way to do it. Discussed with: jhb (a long time ago) Revision Changes Path 1.210 +1 -0 src/sys/kern/kern_fork.c