isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit d1900941f4068de406a211c95989bb7c9b272420
parent dead12efdddec9a7de68d88a8aba68d630040e04
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Fri, 29 Mar 2013 16:00:39 +0100

introduce -DC option to only install a crash handler

Diffstat:
Msrc/isync.h | 1+
Msrc/main.c | 7+++++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/isync.h b/src/isync.h @@ -405,6 +405,7 @@ void cram( const char *challenge, const char *user, const char *pass, #define VERYQUIET 16 #define KEEPJOURNAL 32 #define ZERODELAY 64 +#define CRASHDEBUG 128 extern int DFlags; diff --git a/src/main.c b/src/main.c @@ -431,7 +431,10 @@ main( int argc, char **argv ) DFlags |= VERBOSE | QUIET; break; case 'D': - DFlags |= DEBUG | QUIET; + if (*ochar == 'C') + DFlags |= CRASHDEBUG, ochar++; + else + DFlags |= CRASHDEBUG | DEBUG | QUIET; break; case 'J': DFlags |= KEEPJOURNAL; @@ -450,7 +453,7 @@ main( int argc, char **argv ) } #ifdef __linux__ - if (DFlags & DEBUG) { + if (DFlags & CRASHDEBUG) { signal( SIGSEGV, crashHandler ); signal( SIGBUS, crashHandler ); signal( SIGILL, crashHandler );