From owner-cvs-all@FreeBSD.ORG Thu Jun 12 23:58:12 2003 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 39AE137B401; Thu, 12 Jun 2003 23:58:12 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C851C43FCB; Thu, 12 Jun 2003 23:58:11 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5D6wB0U018853; Thu, 12 Jun 2003 23:58:11 -0700 (PDT) (envelope-from truckman@repoman.freebsd.org) Received: (from truckman@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5D6wBZe018852; Thu, 12 Jun 2003 23:58:11 -0700 (PDT) Message-Id: <200306130658.h5D6wBZe018852@repoman.freebsd.org> From: Don Lewis Date: Thu, 12 Jun 2003 23:58:11 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/fifofs fifo_vnops.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, 13 Jun 2003 06:58:12 -0000 truckman 2003/06/12 23:58:11 PDT FreeBSD src repository Modified files: sys/fs/fifofs fifo_vnops.c Log: Clean up the fifo_open() implementation: Restructure the error handling portion of the resource allocation code to eliminate duplicated code. Test for the O_NONBLOCK && fi_readers == 0 case before incrementing fi_writers and modifying the the socket flag to avoid having to undo these operations in this error case. Restructure and simplify the code that handles blocking opens. There should be no change to functionality. Revision Changes Path 1.88 +30 -45 src/sys/fs/fifofs/fifo_vnops.c