Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Introduce a Trait to deal with autorestart matter in ActorImpl, and fix bugs
[simgrid.git] / src / surf / sg_platf.cpp
index 62ae0fd..268b015 100644 (file)
@@ -477,13 +477,13 @@ void sg_platf_new_actor(simgrid::kernel::routing::ActorCreationArgs* actor)
   simgrid::kernel::actor::ActorCode code = factory(std::move(actor->args));
 
   auto* arg = new simgrid::kernel::actor::ProcessArg(actor_name, code, nullptr, host, kill_time, actor->properties,
-                                                     auto_restart, /*restart_count=*/0);
+                                                     auto_restart, /*daemon=*/false, /*restart_count=*/0);
 
   host->get_impl()->add_actor_at_boot(arg);
 
   if (start_time > simgrid::s4u::Engine::get_clock()) {
     arg = new simgrid::kernel::actor::ProcessArg(actor_name, code, nullptr, host, kill_time, actor->properties,
-                                                 auto_restart, /*restart_count=*/0);
+                                                 auto_restart, /*daemon=*/false, /*restart_count=*/0);
 
     XBT_DEBUG("Actor %s@%s will be started at time %f", arg->name.c_str(), arg->host->get_cname(), start_time);
     simgrid::kernel::timer::Timer::set(start_time, [arg, auto_restart]() {