That's poor. Exit code 2 is supposed to mean 'incorrect arguments' in the
Unix tradition.

Something like 127 or 255 would be better.

-rob

On Wed, Mar 7, 2018 at 10:39 AM, cachvico <darren.e.gr...@gmail.com> wrote:

> Curious why panic appears to exit with code 2 (
> https://golang.org/src/runtime/panic.go line 757)
>
> I can't find any mention of this in the spec; this should probably be
> documented?
>
> For example Supervisor treats exit codes 2 (and 0) as "expected" by
> default, which leads to processes not restarting on a Go panic.
>
> Thanks,
>
> Darren
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to