pub fn spawn_restart_task(
settings: RestartConfig,
) -> Result<impl Future<Output = RestartResult<Child>> + Send>Expand description
Spawns a thread that can be used to restart the process. Returns a future that resolves when a restart succeeds, or if restart becomes impossible. The child spawner thread needs to be created before seccomp locks down fork/exec.