pub fn exec(binary: &Path) -> Result<()>Expand description
Hand the invoking terminal to the built launcher.
On Unix the launcher replaces the CLI process via exec, so the terminal is
owned by exactly one process and its exit status propagates unchanged — a
spawned child would instead share the process group with water and keep
the TTY after water itself dies on SIGINT. Elsewhere the launcher is
spawned with inherited stdio and awaited.
§Errors
Returns an error if the launcher cannot be started; on Unix a successful
exec never returns.