aboutsummaryrefslogtreecommitdiffstats
path: root/man2/setpgid.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/setpgid.2')
-rw-r--r--man2/setpgid.216
1 files changed, 11 insertions, 5 deletions
diff --git a/man2/setpgid.2 b/man2/setpgid.2
index 21d54972c9..b7dfb2101b 100644
--- a/man2/setpgid.2
+++ b/man2/setpgid.2
@@ -67,7 +67,9 @@ If
is zero, the process ID of the process specified by
.I pid
is used.
-If \fBsetpgid\fP() is used to move a process from one process
+If
+.BR setpgid ()
+is used to move a process from one process
group to another (as is done by some shells when creating pipelines),
both process groups must be part of the same session.
In this case,
@@ -141,13 +143,16 @@ always returns the current process group.
.B EACCES
An attempt was made to change the process group ID
of one of the children of the calling process and the child had
-already performed an \fBexecve\fP(2)
-(\fBsetpgid\fP(), \fBsetpgrp\fP()).
+already performed an
+.BR execve (2)
+.RB ( setpgid (),
+.BR setpgrp ()).
.TP
.B EINVAL
.I pgid
is less than 0
-(\fBsetpgid\fP(), \fBsetpgrp\fP()).
+.RB ( setpgid (),
+.BR setpgrp ()).
.TP
.B EPERM
An attempt was made to move a process into a process group in a
@@ -155,7 +160,8 @@ different session, or to change the process
group ID of one of the children of the calling process and the
child was in a different session, or to change the process group ID of
a session leader
-(\fBsetpgid\fP(), \fBsetpgrp\fP()).
+.RB ( setpgid (),
+.BR setpgrp ()).
.TP
.B ESRCH
For