Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Intercept exit() to avoid killing simulations too early, as the first process exits.
[simgrid.git] / include / smpi / smpi_helpers.h
index ef7492d..8ecd7f5 100644 (file)
@@ -38,4 +38,6 @@
 #define realloc(x, y) smpi_shared_realloc_intercept((x), (y), __FILE__, __LINE__)
 #define free(x) smpi_shared_free(x)
 #endif
+
+#define exit(x) smpi_exit(x)
 #endif