During the processing of the command line arguments that display
information and then exit, the mode in which they exit the process
seems
to be inconsistent.  For example, if I start Apache2 with a -h option,
it displays the help screen and then calls destroy_and_exit_process()
with an exit code of 1.  If I start Apache2 with a -v option, it
displays the version and then calls destroy_and_exit_process() with an
exit code of 0.  This is significant to the NetWare platform because
an
exit code of anything other than a 0 indicates that additional
information has probably been written to the screen (error message or
otherwise) and we should hold our screen open rather than
automatically
closing it down.  Since the command line options such as -v are
exiting
with a code of 0, the information is being displayed on the Apache2
screen and then screen is immediately being closed before the user has
a
chance to see it.  Is there any reason why we can't switch the -v, -V,
-l, -L options to exit with a 1 instead of a 0 like the -h option?

thanks,
Brad


Brad Nicholes
Senior Software Engineer
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com 

Reply via email to