Skip to main content

JobExt

Trait JobExt 

Source
pub trait JobExt {
    // Required methods
    fn send_signal(&self, signal: i32) -> Result<()>;
    fn send_signal_group(&self, signal: i32) -> Result<()>;
}
Expand description

Unix-specific extension methods for Job.

Required Methods§

Source

fn send_signal(&self, signal: i32) -> Result<()>

Send the specified signal to all processes in the pipeline.

Delegates to ProcessExt::send_signal on each process.

Source

fn send_signal_group(&self, signal: i32) -> Result<()>

Send the specified signal to the process group of the first process.

When used with PipelineExt::setpgid, all pipeline processes share the first process’s group, so signaling it reaches the entire pipeline. For a single process started with ExecExt::setpgid, this signals its group.

Implementors§