Skip to main content

running_daemon_pid

Function running_daemon_pid 

Source
pub fn running_daemon_pid() -> Option<u32>
Expand description

The PID of the running daemon as daemon status reports it: this process when it is the foreground daemon daemon.pid names, otherwise verified_daemon. The process sweep behind verified_daemon excludes its own PID, so the daemon answering its own /v1/local/daemon found no daemon (running: false) while lean-ctx daemon status saw it.