From owner-cvs-all Tue Apr 16 10: 9:26 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4185D37B416; Tue, 16 Apr 2002 10:09:22 -0700 (PDT) Received: (from jhb@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3GH9M288019; Tue, 16 Apr 2002 10:09:22 -0700 (PDT) (envelope-from jhb) Message-Id: <200204161709.g3GH9M288019@freefall.freebsd.org> From: John Baldwin Date: Tue, 16 Apr 2002 10:09:22 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern tty.c tty_pty.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jhb 2002/04/16 10:09:22 PDT Modified files: sys/kern tty.c tty_pty.c Log: - Lock proctree_lock instead of pgrpsess_lock. - Use temporary variables to hold a pointer to a pgrp while we dink with it while not holding either the associated proc lock or proctree_lock. It is in theory possible that p->p_pgrp could change out from under us. Revision Changes Path 1.172 +34 -33 src/sys/kern/tty.c 1.98 +8 -6 src/sys/kern/tty_pty.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message