Struct oursh::process::ProcessGroup
source · pub struct ProcessGroup(pub Process);
Expand description
Processes groups are used for things like pipelines and background jobs
The system call int setpgid(pid_t pid, pid_t pgid)
is used to set.
Every process is member of a unique process group, identified by its process group ID. (When the process is created, it becomes a member of the process group of its parent.) By convention, the process group ID of a process group equals the process ID of the first member of the process group, called the process group leader. A process finds the ID of its process group using the system call getpgrp(), or, equivalently, getpgid(0). One finds the process group ID of process p using getpgid(p).
Tuple Fields§
§0: Process
Implementations§
source§impl ProcessGroup
impl ProcessGroup
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ProcessGroup
impl Send for ProcessGroup
impl Sync for ProcessGroup
impl Unpin for ProcessGroup
impl UnwindSafe for ProcessGroup
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more