From owner-cvs-all@FreeBSD.ORG Tue Nov 23 22:15:12 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 8628516A4CE; Tue, 23 Nov 2004 22:15:12 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60EEE43D48; Tue, 23 Nov 2004 22:15:09 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iANMF8k6076951; Tue, 23 Nov 2004 22:15:09 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iANMF875076950; Tue, 23 Nov 2004 22:15:08 GMT (envelope-from rwatson) Message-Id: <200411232215.iANMF875076950@repoman.freebsd.org> From: Robert Watson Date: Tue, 23 Nov 2004 22:15:08 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sys_pipe.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: Tue, 23 Nov 2004 22:15:12 -0000 rwatson 2004-11-23 22:15:08 UTC FreeBSD src repository Modified files: sys/kern sys_pipe.c Log: Correct a bug introduced in sys_pipe.c:1.179: in pipe_ioctl(), release the pipe mutex before calling fsetown(), as fsetown() may block. The sigio code protects the pipe sigio data using its own mutex, and the pipe reference count held by the caller will prevent the pipe from being prematurely garbage-collected. Discovered by: imp Revision Changes Path 1.181 +5 -2 src/sys/kern/sys_pipe.c