Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Sep 2006 19:09:23 +0100
From:      Roy Marples <uberlord@gentoo.org>
To:        Stanislav Sedov <ssedov@mbsd.msk.ru>
Cc:        freebsd-standards@freebsd.org
Subject:   Re: FreeBSD Port: sysutils/fuser
Message-ID:  <200609111909.23599.uberlord@gentoo.org>
In-Reply-To: <20060911125816.4a606317@localhost>
References:  <200609102148.26767.uberlord@gentoo.org> <20060911125816.4a606317@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 11 September 2006 09:58, Stanislav Sedov wrote:
> On Sun, 10 Sep 2006 21:48:26 +0100
>
> Roy Marples <uberlord@gentoo.org> mentioned:
> > Hi
> >
> > I'm currently adding FreeBSD support to Gentoo baselayout rc system. We
> > use the linux fuser tool a bit, and rely on the return value being non
> > zero of no files are in use on the requested mount points.
> >
> > Attached is a patch that enables the same in FreeBSD
>
> But POSIX says the following:
> --------------------------------------------------------------
> EXIT STATUS
>
>     The following exit values shall be returned:
>
>      0
>         Successful completion.
>
>     >0
>
>         An error occurred.
> --------------------------------------------------------------
>
> So, as I understand correctly, we should return 0 in this case.

Do they define what <0 means? Could always return -1.

A return value is easier than checking output.

Thanks

-- 
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?200609111909.23599.uberlord>