Skip to main content

run_agent_then_remove

Function run_agent_then_remove 

Source
pub fn run_agent_then_remove(
    cmd: Command,
    private_file: PathBuf,
    agent: Agent,
    user_config: &Path,
) -> !
Expand description

Run the agent as a child and exit with its status, removing private_file (the settings that hold a key) once it has exited. Used instead of exec_agent when there is such a file: a replaced process could not remove it.

The terminal’s interrupt and quit go to the agent, which shares this process’s group; here they are only waited out. A termination or hang-up sent to visdom itself is passed on to the agent. Files left by a visdom that did not get to remove its own (killed outright) are removed first.