From owner-freebsd-standards@FreeBSD.ORG Tue Sep 12 21:02:37 2006 Return-Path: X-Original-To: freebsd-standards@freebsd.org Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A12D916A416; Tue, 12 Sep 2006 21:02:37 +0000 (UTC) (envelope-from uberlord@gentoo.org) Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34EAC43D55; Tue, 12 Sep 2006 21:02:35 +0000 (GMT) (envelope-from uberlord@gentoo.org) Received: from uberlaptop.marples.name (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id E7B0C1900AD; Tue, 12 Sep 2006 22:02:26 +0100 (BST) From: Roy Marples Organization: Gentoo/Linux To: Oliver Fromme Date: Tue, 12 Sep 2006 22:02:28 +0100 User-Agent: KMail/1.9.4 References: <200609121106.k8CB6bwD088486@lurza.secnetix.de> In-Reply-To: <200609121106.k8CB6bwD088486@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609122202.29269.uberlord@gentoo.org> Cc: freebsd-hackers@freebsd.org, freebsd-standards@freebsd.org Subject: Re: FreeBSD Port: sysutils/fuser X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Sep 2006 21:02:37 -0000 On Tuesday 12 September 2006 12:06, Oliver Fromme wrote: > Roy Marples wrote: > > Stanislav Sedov wrote: > > > But they wants the value 0 to be returned in case of no errors, and > > > since there are no errors in case of no files opened on mountpoint, > > > returning non-zero could break some apps that relies on POSIX > > > functionality. > > > > > > IIRC, solaris resembles the same behavior. > > > > OK, you win - I'll parse the output :) > > There's no need to parse it. If you only want to know if > _any_ process is accessing a file at all, it's sufficient > to check if stdout from fuser is non-empty. Of course, that's what I meant ;) -- Roy Marples Gentoo/Linux Developer (baselayout, networking)