Browse Source

#ifdef __linux__ for the crash handler. it compiles on other platforms,

but the functionality is bound to linux' /proc structure.
wip/maildir-uid-dupes-test
Oswald Buddenhagen 18 years ago
parent
commit
42ca262e39
  1. 4
      src/main.c

4
src/main.c

@ -83,6 +83,7 @@ PACKAGE " " VERSION " - mailbox synchronizer\n"
exit( code );
}
#ifdef __linux__
static void
crashHandler( int n )
{
@ -110,6 +111,7 @@ crashHandler( int n )
}
exit( 3 );
}
#endif
static int
matches( const char *t, const char *p )
@ -438,11 +440,13 @@ main( int argc, char **argv )
}
}
#ifdef __linux__
if (DFlags & DEBUG) {
signal( SIGSEGV, crashHandler );
signal( SIGBUS, crashHandler );
signal( SIGILL, crashHandler );
}
#endif
if (merge_ops( cops, mvars->ops ))
return 1;

Loading…
Cancel
Save