X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/10b79717c494b2267d2f14e299062d6357aa4525..44308b13ee71379511af1c34273cd96937c51ce5:/src/surf/HostImpl.cpp diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 8fa93261b5..26acaddfa1 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -132,10 +132,11 @@ void HostImpl::turn_on() arg->properties.get(), nullptr); if (arg->kill_time >= 0) simcall_process_set_kill_time(actor, arg->kill_time); - if (arg->auto_restart) - actor->auto_restart_ = arg->auto_restart; + if (arg->daemon_) + actor->daemonize(); } } + /** Kill all actors hosted here */ void HostImpl::turn_off() {