setpgrp(2v)
SYSTEM V Environment
NAME
setpgrp, getpgrp − set and get process group ID
SYNTAX
int setpgrp()
int getpgrp()
DESCRIPTION
This is the SYSTEM V version of the setpgrp system call. For the ULTRIX-11 version of this call, read the setpgrp(2j) manual page.
The setpgrp system call sets the process group ID of the calling process to the process ID of the calling process and returns the new process group
The getpgrp call returns the process group ID of the calling process. The setpgrp(2j) manual page describes the calls which are part of the job control facilities. For further information, see setpgrp(2j) and intro(3j). The version described here is found in the standard C library, libc.a.
RETURN VALUE
The setpgrp call returns the value of the new process group ID.
SEE ALSO
exec(2), fork(2), getpid(2), intro(2), kill(2), setpgrp(2j), signal(2)