pub async fn wait_for_exit(pid: u32) -> Result<(), Error>Expand description
Wait for a process to leave, within STOP_TIMEOUT.
The error says the process was still running rather than that it “did not stop”: a daemon that is still winding down has not refused, and the two read very differently to somebody deciding whether to reach for a kill.