Skip to main content

process_handler

Function process_handler 

Source
pub fn process_handler(
    process_args: Vec<String>,
    is_non_interactive: bool,
) -> Result<ExitCode>
Expand description

Main process handler for SSH subprocess

Manages the SSH subprocess lifecycle, including spawning, output processing, and exit code handling. Automatically detects non-interactive commands and uses passthrough mode for them.

§Arguments

  • process_args - Command-line arguments to pass to SSH
  • is_non_interactive - Whether this is a non-interactive command (-G, -V, etc.)

§Returns

Exit code from the SSH process