From: Frederic Suter Date: Thu, 24 Oct 2019 11:28:34 +0000 (+0200) Subject: almost useless old stuff... remove X-Git-Tag: v3.25~490 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e329e2e6aa39ca2d2317ddd4b9ea83250ac98f8e almost useless old stuff... remove --- diff --git a/include/simgrid/simix.h b/include/simgrid/simix.h index fa670568ec..6eca9b18e6 100644 --- a/include/simgrid/simix.h +++ b/include/simgrid/simix.h @@ -46,14 +46,6 @@ typedef enum { } e_smx_state_t; /** @} */ -/* ****************************** Process *********************************** */ - -typedef enum { - SMX_EXIT_SUCCESS = 0, - SMX_EXIT_FAILURE = 1 -} smx_process_exit_status_t; -/** @} */ - /******************************* Networking ***********************************/ extern unsigned smx_context_stack_size; extern unsigned smx_context_guard_size; diff --git a/src/msg/msg_process.cpp b/src/msg/msg_process.cpp index d6db894423..3eb4648097 100644 --- a/src/msg/msg_process.cpp +++ b/src/msg/msg_process.cpp @@ -174,6 +174,5 @@ int MSG_process_get_number() */ void MSG_process_on_exit(int_f_int_pvoid_t fun, void* data) { - simgrid::s4u::this_actor::on_exit( - [fun, data](bool failed) { fun(failed ? SMX_EXIT_FAILURE : SMX_EXIT_SUCCESS, data); }); + simgrid::s4u::this_actor::on_exit([fun, data](bool failed) { fun(failed ? 1 /*FAILURE*/ : 0 /*SUCCESS*/, data); }); }