Skip to main content

run

Function run 

Source
pub fn run(config: Config) -> Result<i32, String>
Expand description

Runs the configured command under supervision and returns its exit code.

The child installs the seccomp filter and hands the listener back over a socketpair before stopping itself; the parent then becomes the tracer and starts the notification pool.

§Arguments

  • config - Fully parsed configuration.

§Errors

A message describing why the command could not be started.