Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 May 2018 15:50:57 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Marcelo Araujo <araujo@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r334199 - head/usr.sbin/bhyve
Message-ID:  <CAPyFy2BrejkDGiGnO2PAf0d09=TbtTq37fD3WNKzJJ5vK0Ldkw@mail.gmail.com>
In-Reply-To: <CAOfEmZhHTffQ03-TR7-MG4mj5PefwDDiKo_WkRyre7TQurZzEg@mail.gmail.com>
References:  <201805250207.w4P275Pf060725@repo.freebsd.org> <20180525151134.GB99063@spindle.one-eyed-alien.net> <CAOfEmZgV9yssn5v8ZpbkwL=rrifoD1Z=uRxe6a0KyM3mrXrSjQ@mail.gmail.com> <CAF6rxgm32%2B_XazDvbtyFChPigxVB0HQ30r3=CvN65ko=zHq0yA@mail.gmail.com> <CAOfEmZhS4RZPn6%2BqOcU56HUtUgGids79cS=fBKfuGjpBBQQm5g@mail.gmail.com> <20180525174424.GD99063@spindle.one-eyed-alien.net> <CAOfEmZhm3HPGU3r2nK9o3ry8%2BxpzaFRDCgw3qCKgy2CTOu3NaQ@mail.gmail.com> <20180525182139.GE99063@spindle.one-eyed-alien.net> <CAOfEmZhHTffQ03-TR7-MG4mj5PefwDDiKo_WkRyre7TQurZzEg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25 May 2018 at 14:29, Marcelo Araujo <araujobsdport@gmail.com> wrote:
>
> One more thing, exit with err(1) is wrong, 1 is EPERM and should be 12
> ENOMEN! :D

No, please see the err(3) manpage - err's first argument is the exit
code for the program, not an errno.

(err suggests using exit codes from sysexits(3), but there is much
disagreement about that. Either way it's not an errno.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2BrejkDGiGnO2PAf0d09=TbtTq37fD3WNKzJJ5vK0Ldkw>