From 88b1e4950f861a4757910503cb770442fc614458 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 18 Aug 2018 01:21:12 +0200 Subject: [PATCH] Mark actors as auto_restart when recreating them on restart. I guess it often works without it because we restart the actors that are in the actors_at_boot_ vector, and that list is sufficiently accurate. But still, several locations of the code actually look if the actor is marked auto_restart_ without checking the vector, so it's much better having redundent information source to contain the same data. --- src/surf/HostImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/surf/HostImpl.cpp b/src/surf/HostImpl.cpp index 26acaddfa1..401ee6d664 100644 --- a/src/surf/HostImpl.cpp +++ b/src/surf/HostImpl.cpp @@ -132,6 +132,8 @@ 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(); } -- 2.20.1