introduce -DC option to only install a crash handler
This commit is contained in:
parent
dead12efdd
commit
d1900941f4
|
@ -405,6 +405,7 @@ void cram( const char *challenge, const char *user, const char *pass,
|
||||||
#define VERYQUIET 16
|
#define VERYQUIET 16
|
||||||
#define KEEPJOURNAL 32
|
#define KEEPJOURNAL 32
|
||||||
#define ZERODELAY 64
|
#define ZERODELAY 64
|
||||||
|
#define CRASHDEBUG 128
|
||||||
|
|
||||||
extern int DFlags;
|
extern int DFlags;
|
||||||
|
|
||||||
|
|
|
@ -431,7 +431,10 @@ main( int argc, char **argv )
|
||||||
DFlags |= VERBOSE | QUIET;
|
DFlags |= VERBOSE | QUIET;
|
||||||
break;
|
break;
|
||||||
case 'D':
|
case 'D':
|
||||||
DFlags |= DEBUG | QUIET;
|
if (*ochar == 'C')
|
||||||
|
DFlags |= CRASHDEBUG, ochar++;
|
||||||
|
else
|
||||||
|
DFlags |= CRASHDEBUG | DEBUG | QUIET;
|
||||||
break;
|
break;
|
||||||
case 'J':
|
case 'J':
|
||||||
DFlags |= KEEPJOURNAL;
|
DFlags |= KEEPJOURNAL;
|
||||||
|
@ -450,7 +453,7 @@ main( int argc, char **argv )
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (DFlags & DEBUG) {
|
if (DFlags & CRASHDEBUG) {
|
||||||
signal( SIGSEGV, crashHandler );
|
signal( SIGSEGV, crashHandler );
|
||||||
signal( SIGBUS, crashHandler );
|
signal( SIGBUS, crashHandler );
|
||||||
signal( SIGILL, crashHandler );
|
signal( SIGILL, crashHandler );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user