Skip to main content

terminate_child

Function terminate_child 

Source
async fn terminate_child(
    child: &mut Child,
    shutdown_grace_period: Duration,
) -> Result<(), Report>
Expand description

Attempts graceful termination of the zcashd-compat child process.

On Unix, this sends SIGTERM first. If the process has not exited after shutdown_grace_period, it is force-killed.

ยงErrors

Returns an error if waiting for process termination fails.