Skip to main content

PipelineExt

Trait PipelineExt 

Source
pub trait PipelineExt {
    // Required method
    fn setpgid(self) -> Self;
}
Expand description

Unix-specific extension methods for Pipeline.

Required Methods§

Source

fn setpgid(self) -> Self

Put all pipeline processes into a shared process group.

The first process becomes the group leader (via setpgid(0, 0)) and subsequent processes join its group. This allows signaling the entire pipeline as a unit using JobExt::send_signal_group.

For single processes that spawn children, use ExecExt::setpgid instead.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§