FreeBSD Port: sysutils/fuser
Roy Marples
uberlord at gentoo.org
Tue Sep 12 14:02:37 PDT 2006
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 at gentoo.org>
Gentoo/Linux Developer (baselayout, networking)
More information about the freebsd-hackers
mailing list