std.ps
setpgid(pid, pgid)
pid
pgid
Set the process group ID of a process
Sets the process group ID of the process specified by pid. If pid is 0, the calling process's PID is used. The pgid parameter specifies the new process group ID.