Skip to main content

spawn_daemon

Function spawn_daemon 

Source
pub fn spawn_daemon(session: &str) -> Result<()>
Expand description

Spawns the daemon as a detached background process by re-executing the current binary with the --run-daemon SESSION internal flag. This avoids the fork-inside-tokio-runtime problem.