pub fn prepare_daemon_exe(canonical: &Path) -> Result<PathBuf, Error>Expand description
Copy canonical (the daemon binary at its install location) to a unique
path inside runtime_binaries_dir and return the new path. The caller
then spawns from the returned path so the install location is never
file-locked by a running daemon.
On copy failure the caller should fall back to spawning canonical
directly; the in-place unlock_exe() in the daemon then handles the
lock removal as a fallback.