Make utility programs abort on internal error

Until now, they tried to recover and continue (debug off).  That's
appropriate only for the server.  The server could be told to abort
instead (debug on, selected by option -d), but not the utility
programs.

Change debug to be on by default, and switch it off early in the
server's main().  No functional change for the server.
This commit is contained in:
Markus Armbruster 2008-02-03 13:22:34 +01:00
parent a573f44960
commit a38fad4229
2 changed files with 3 additions and 1 deletions

View file

@ -46,7 +46,7 @@
#include "prototypes.h"
/* Debugging? If yes call abort() on internal error. */
int debug = 0;
int debug = 1;
static char logfile[32];
static int logfd = -1;

View file

@ -133,6 +133,8 @@ main(int argc, char **argv)
int op, sig;
unsigned seed = time(NULL);
debug = 0;
#ifdef _WIN32
# define XOPTS "iI:uU:"
#else