File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ pub trait CommandExt: Sealed {
148
148
where
149
149
S : AsRef < OsStr > ;
150
150
151
- /// Sets the process group ID of the child process. Equivalent to a
151
+ /// Sets the process group ID (PGID) of the child process. Equivalent to a
152
152
/// `setpgid` call in the child process, but may be more efficient.
153
153
///
154
154
/// Process groups determine which processes receive signals.
@@ -163,6 +163,8 @@ pub trait CommandExt: Sealed {
163
163
/// The parent process could install a signal handler and manage the
164
164
/// subprocess on its own terms.
165
165
///
166
+ /// A process group ID of 0 will use the process ID as the PGID.
167
+ ///
166
168
/// ```no_run
167
169
/// use std::process::Command;
168
170
/// use std::os::unix::process::CommandExt;
You can’t perform that action at this time.
0 commit comments