SETPGRP(2)
NAME
setpgrp − set process group ID
SYNOPSIS
int setpgrp ()
HP-UX COMPATIBILITY
Level: HP-UX/RUN ONLY
Origin: System V
DESCRIPTION
Setpgrp sets the process group ID of the calling process to the process ID of the calling process and returns the new process group ID.
Setpgrp breaks the calling process’s terminal affiliation unless it is already the process group leader. See termio(4).
RETURN VALUE
Setpgrp returns the value of the new process group ID.
SEE ALSO
exec(2), fork(2), getpid(2), kill(2), signal(2).
Hewlett-Packard — last mod. May 11, 2021