diff options
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h index bba30e21..c0ffce33 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -560,4 +560,16 @@ char *strerror (); #endif #endif +#ifdef FETCHMAIL_DEBUG +#define exit(e) do { \ + FILE *out; \ + out = fopen("/tmp/fetchmail.log", "a"); \ + fprintf(out, \ + "Exiting fetchmail from file %s, line %d with status %d\n", \ + __FILE__, __LINE__, e); \ + fclose(out); \ + _exit(e); \ + } while(0) +#endif /* FETCHMAIL_DEBUG */ + /* fetchmail.h ends here */ |