We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
process_group
1 parent b028bbf commit 629b0b4Copy full SHA for 629b0b4
library/std/src/os/unix/process.rs
@@ -148,7 +148,7 @@ pub trait CommandExt: Sealed {
148
where
149
S: AsRef<OsStr>;
150
151
- /// Sets the process group ID of the child process. Equivalent to a
+ /// Sets the process group ID (PGID) of the child process. Equivalent to a
152
/// `setpgid` call in the child process, but may be more efficient.
153
///
154
/// Process groups determine which processes receive signals.
@@ -163,6 +163,8 @@ pub trait CommandExt: Sealed {
163
/// The parent process could install a signal handler and manage the
164
/// subprocess on its own terms.
165
166
+ /// A process group ID of 0 will use the process ID as the PGID.
167
+ ///
168
/// ```no_run
169
/// use std::process::Command;
170
/// use std::os::unix::process::CommandExt;
0 commit comments