File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man2 / setpgrp.2
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:31 2019 UTC (6 years, 11 months ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

.TH SETPGRP 2 "12 February 1983"
.UC 4
.SH NAME
setpgrp \- set process group
.SH SYNOPSIS
.ft B
setpgrp(pid, pgrp)
.br
int pid, pgrp;
.ft R
.SH DESCRIPTION
.I Setpgrp
sets the process group of the specified process
.I pid
to the specified
.IR pgrp .
If
.I pid
is zero, then the call applies to the current process.
.PP
If the invoker is not the super-user, then the affected process
must have the same effective user-id as the invoker or be a descendant
of the invoking process.
.SH "RETURN VALUE
.I Setpgrp
returns when the operation was successful.  If
the request failed, \-1 is returned and the global
variable
.I errno
indicates the reason.
.SH ERRORS
.I Setpgrp
fails and the process group is not altered if
one of the following occur:
.TP 15
[ESRCH]
The requested process does not exist.
.TP 15
[EPERM]
The effective user ID of the requested process is different
from that of the caller and the process is not a descendent
of the calling process.
.SH "SEE ALSO"
getpgrp(2)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.