X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e3a1cf8d29cef5eaf730b485da389cff9319fa56..5232905f5b6e218cd2378c59e407d40bfcb57b18:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 088e84864c..09d521b66f 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -105,6 +105,8 @@ void HostImpl::turn_on() XBT_DEBUG("Booting Actor %s(%s) right now", arg->name.c_str(), arg->host->get_cname()); simgrid::kernel::actor::ActorImplPtr actor = simgrid::kernel::actor::ActorImpl::create( arg->name.c_str(), arg->code, nullptr, arg->host, arg->properties.get(), nullptr); + if (arg->on_exit) + *actor->on_exit = *arg->on_exit; if (arg->kill_time >= 0) actor->set_kill_time(arg->kill_time); if (arg->auto_restart)