Skip to main content

SUPERVISED_ZCASHD_PID

Static SUPERVISED_ZCASHD_PID 

Source
static SUPERVISED_ZCASHD_PID: AtomicU32
Expand description

The pid of the currently running supervised zcashd child, or 0 when none.

On SIGINT/SIGTERM, the tokio runtime drops the whole start() future — and the supervisor task with it — without ever running the supervisor’s graceful-shutdown path. The child is spawned without kill_on_drop, so it would be silently orphaned. This pid lets terminate_abandoned_zcashd clean up synchronously after the runtime has shut down.