setpgid(2)
DESCRIPTION
Moves a process into a process group.
SYNOPSIS
long setpgid(int pid, int pgid);
RETURN VALUE
- Returns a non-negative result on success. Negative values are ABI errno codes.
ERRORS
-EINVAL- .
-EPERM- .
-ESRCH- .
ABI
Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.