Date: Tue, 12 Sep 2006 22:02:28 +0100 From: Roy Marples <uberlord@gentoo.org> To: Oliver Fromme <olli@lurza.secnetix.de> Cc: freebsd-hackers@freebsd.org, freebsd-standards@freebsd.org Subject: Re: FreeBSD Port: sysutils/fuser Message-ID: <200609122202.29269.uberlord@gentoo.org> In-Reply-To: <200609121106.k8CB6bwD088486@lurza.secnetix.de> References: <200609121106.k8CB6bwD088486@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <uberlord@gentoo.org> Gentoo/Linux Developer (baselayout, networking)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609122202.29269.uberlord>