From owner-cvs-all Thu Feb 4 15:50:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14057 for cvs-all-outgoing; Thu, 4 Feb 1999 15:50:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA14052; Thu, 4 Feb 1999 15:50:51 -0800 (PST) (envelope-from dillon@FreeBSD.org) From: Matt Dillon Received: (from dillon@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id PAA09647; Thu, 4 Feb 1999 15:50:50 -0800 (PST) (envelope-from dillon@FreeBSD.org) Date: Thu, 4 Feb 1999 15:50:50 -0800 (PST) Message-Id: <199902042350.PAA09647@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/kern sys_pipe.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk dillon 1999/02/04 15:50:49 PST Modified files: sys/kern sys_pipe.c Log: Fix race in pipe read code whereby a blocked lock can allow another process to sneak in and write to or close the pipe. The read code enters a 'piperd' state after doing the lock operation without checking to see if the state changed, which can cause the process to wait forever. The code has also been documented more. Revision Changes Path 1.50 +39 -20 src/sys/kern/sys_pipe.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message