Skip to main content

spawn_zcashd

Function spawn_zcashd 

Source
fn spawn_zcashd(config: &SupervisorConfig) -> Result<Child, Report>
Expand description

Spawns zcashd with zcashd-compat arguments and connects child output streams.

kill_on_drop is intentionally disabled: a dropped child handle (zebrad panic, supervisor task abort) must not SIGKILL a zcashd that may be flushing its chainstate and wallet. An abandoned zcashd finishes any SIGTERM-initiated shutdown on its own, or keeps running until stopped externally; init reaps it once zebrad exits. The child also runs in its own process group so group-wide terminal signals aimed at zebrad cannot kill zcashd uncleanly; terminate_child remains the only path that force-kills it.

ยงErrors

Returns an error if the child process cannot be spawned.