- /* verify if process has been created (won't be the case if the host is currently dead, but that's fine) */
- if (!process_created)
- return;
-
- if (arg->kill_time >= 0)
- simcall_process_set_kill_time(process_created, arg->kill_time);
+ /* The actor creation will fail if the host is currently dead, but that's fine */
+ if (actor != nullptr) {
+ if (arg->kill_time >= 0)
+ simcall_process_set_kill_time(actor, arg->kill_time);
+ if (auto_restart)
+ SIMIX_process_auto_restart_set(actor, auto_restart);
+ }