SETPGRP(2) — System Interface Manual — System Calls
NAME
setpgrp − set process group
SYNOPSIS
setpgrp(pid, pgrp)
int pid, pgrp;
DESCRIPTION
Setpgrp sets the process group of the specified process pid to the specified pgrp. If pid is zero, then the call applies to the current process.
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.
RETURN VALUE
???
ERRORS
???
SEE ALSO
Sun System Release 0.3 — 23 March 1983