Skip to main contentModule process
Source - adopt_scm_fd
- Adopt a raw descriptor received via
SCM_RIGHTS into an owned handle. - args
- Build a
Vec<OsString> from a slice of &str/&String literals. - exec_replace
- Replace the current process with the given binary and arguments.
- open_pidfd
- Open a pidfd for a given PID (Linux 5.3+).
- recv_fd
- Receive a raw file descriptor from a connected Unix stream via
SCM_RIGHTS. - run_piped
- Run a command, capturing stdout and stderr.
- run_piped_timeout
- Run a command with a timeout, capturing stdout and stderr.
- run_with_log
- Run a command while teeing stdout+stderr into a log file.
- send_fd
- Send a raw file descriptor over a connected Unix stream via
SCM_RIGHTS. - spawn_interactive
- Spawn a command attached to the current terminal.
- spawn_interactive_timeout
- Run an interactive command with a timeout (SIGTERM, then SIGKILL).
- wait_child_timeout
- Wait for a child process to complete, enforcing a timeout via SIGKILL.