From owner-cvs-src@FreeBSD.ORG Mon Nov 10 20:54:19 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 C3C4416A4D1 for ; Mon, 10 Nov 2003 20:54:19 -0800 (PST) Received: from vette.gigo.com (vette.gigo.com [216.218.228.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7970A43FAF for ; Mon, 10 Nov 2003 20:54:14 -0800 (PST) (envelope-from lioux@brturbo.com) Received: from 200.101.111.208 (200-101-111-208.bsace705.dsl.brasiltelecom.net.br [200.101.111.208]) by vette.gigo.com (Postfix) with ESMTP id 9956F56E8 for ; Mon, 10 Nov 2003 20:46:19 -0800 (PST) Received: (qmail 26999 invoked by uid 1001); 11 Nov 2003 04:07:35 -0000 Message-ID: <20031111040735.26998.qmail@exxodus.fedaykin.here> Received: (qmail 21846 invoked from network); 10 Nov 2003 22:47:43 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 10 Nov 2003 22:47:43 -0000 Received: from pop3.uol.com.br by localhost with POP3 (fetchmail-6.2.5) for lioux-freebsd@localhost (single-drop); Mon, 10 Nov 2003 20:47:21 -0200 (BRST) Received: from peart.uol.com.br (172.26.5.121) by mtauol7.mail.sys.intranet (5.1.071) id 3EDB5C0C020CA9F8 for lioux-freebsd@uol.com.br; Mon, 10 Nov 2003 19:44:08 -0300 Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by storm7.uol.com.br (Postfix) with ESMTP id 8A72D3B47E for ; Mon, 10 Nov 2003 20:22:33 -0200 (BRST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 0E5CF56539 for ; Mon, 10 Nov 2003 14:21:37 -0800 (PST) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id 5081D16A531; Mon, 10 Nov 2003 14:21:33 -0800 (PST) Delivered-To: lioux@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id 9721516A4D0; Mon, 10 Nov 2003 14:21:32 -0800 (PST) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D5EF16A4CE; Mon, 10 Nov 2003 14:21:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A877243FAF; Mon, 10 Nov 2003 14:21:00 -0800 (PST) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAAML0XJ066067; Mon, 10 Nov 2003 14:21:00 -0800 (PST) (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAAML0sW066066; Mon, 10 Nov 2003 14:21:00 -0800 (PST) (envelope-from truckman) From: Don Lewis Date: Mon, 10 Nov 2003 14:21:00 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 04:54:19 -0000 truckman 2003/11/10 14:21:00 PST FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c Log: If fifo_open() is interrupted, fifo_close() may not get called, causing a resource leak. Move the resource deallocation code from fifo_close() to a new function, fifo_cleanup(), and call fifo_cleanup() from fifo_close() and the appropriate places in fifo_open(). Tested by: Lukas Ertl Pointy hat to: truckman Revision Changes Path 1.90 +23 -9 src/sys/fs/fifofs/fifo_vnops.c