[ofa-general] Re: [PATCH] Opensm: main exit codes

Sasha Khapyorsky sashak at voltaire.com
Sun Nov 23 10:58:36 PST 2008


Hi Tim,

On 17:10 Tue 18 Nov     , Timothy A. Meier wrote:
> 
>   I thought it would be useful to define a set of exit codes for opensm.  A quick examination of main.c
> showed a few different ways to terminate.  How about this patch?  Obviously this doesn't catch every
> possible exit scenario, but its a start that can be built upon.

Personally I read 'exit(0)' faster than 'exit(OSM_EXIT_TYPE_NORMAL)',
but maybe it is just me :).

Maybe error codes could be formalized, but I'm not sure that it would be
beneficial without any practical uses (and clear requirements
understanding). Finally we can found us in a middle of the total mess
similar to how OSM_LOG_* is used today.

Sasha



More information about the general mailing list