X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/55e6d07cfba4948a918765e9d6fd2801d3639a4a..08e94eb0482589e4b287cbea301b84daf52635bd:/src/instr/instr_platform.cpp diff --git a/src/instr/instr_platform.cpp b/src/instr/instr_platform.cpp index 74e444bd03..4bc1e2c8be 100644 --- a/src/instr/instr_platform.cpp +++ b/src/instr/instr_platform.cpp @@ -306,13 +306,11 @@ static void instr_actor_on_creation(simgrid::s4u::ActorPtr actor) root->type_->by_name_or_create("ACTOR_TASK_LINK", actor_type, actor_type); std::string container_name = instr_pid(actor.get()); - actor->on_exit( - [container_name](int status, void*) { - if (status == SMX_EXIT_FAILURE) - // kill means that this actor no longer exists, let's destroy it - simgrid::instr::Container::by_name(container_name)->remove_from_parent(); - }, - actor->get_impl()); + actor->on_exit([container_name](bool failed) { + if (failed) + // kill means that this actor no longer exists, let's destroy it + simgrid::instr::Container::by_name(container_name)->remove_from_parent(); + }); } static long long int counter = 0;