pub fn started_as() -> Option<&'static ExecutableIdentity>Expand description
The executable this process was started from, as it stood on disk when first asked.
main asks before anything else, so the answer is the file the process was loaded from,
not whatever sits at that path later. A server that has been running for a day still
knows which bytes it is: the comparison serving_replaced_code makes is against this,
never against a second executable a client would have to hold (I1502).
use majordomus_cli::lease::started_as;
let first = started_as().cloned();
assert_eq!(started_as().cloned(), first, "pinned: the second answer is the first");