replace exit(EXIT_FAILURE) with abort() in FATAL_* new-transport
authorTero Marttila <terom@fixme.fi>
Sun, 03 May 2009 17:14:09 +0300
branchnew-transport
changeset 162 fa8dc83739e2
parent 161 d229e4668476
child 163 27a112d89a73
replace exit(EXIT_FAILURE) with abort() in FATAL_*
src/log.h
--- a/src/log.h	Tue Apr 28 23:11:06 2009 +0300
+++ b/src/log.h	Sun May 03 17:14:09 2009 +0300
@@ -100,21 +100,21 @@
 /**
  * log_fatal + exit failure
  */
-#define FATAL(...) do { log_fatal(__VA_ARGS__); exit(EXIT_FAILURE); } while (0)
+#define FATAL(...) do { log_fatal(__VA_ARGS__); abort(); } while (0)
 
 /**
  * log_err + exit failure
  */
-#define FATAL_ERR(err_code, ...) do { _log_err_code(LOG_FATAL, err_code, __func__, __VA_ARGS__); exit(EXIT_FAILURE); } while (0)
+#define FATAL_ERR(err_code, ...) do { _log_err_code(LOG_FATAL, err_code, __func__, __VA_ARGS__); abort(); } while (0)
 
 /**
  * log_err_info + exit failure
  */
-#define FATAL_ERROR(err_info, ...) do { _log_err(LOG_FATAL, err_info, __func__, __VA_ARGS__); exit(EXIT_FAILURE); } while (0)
+#define FATAL_ERROR(err_info, ...) do { _log_err(LOG_FATAL, err_info, __func__, __VA_ARGS__); abort(); } while (0)
 
 /**
  * log_perr + exit failure
  */
-#define FATAL_PERROR(...) do { _log_perr(LOG_FATAL, __func__, __VA_ARGS__); exit(EXIT_FAILURE); } while (0)
+#define FATAL_PERROR(...) do { _log_perr(LOG_FATAL, __func__, __VA_ARGS__); abort(); } while (0)
 
 #endif /* LOG_H */