commit 6bfd600d81a1e70229ce54f53641d104051743f8
Author: Oswald Buddenhagen <o...@kde.org>
Date:   Fri Mar 29 16:00:39 2013 +0100

    introduce -DC option to only install a crash handler

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

diff --git a/src/isync.h b/src/isync.h
index d88894a..0fd196b 100644
--- 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
index 8d092a2..79b39e0 100644
--- 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 );

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to