NAME
setpgrp — set the
process group ID
SYNOPSIS
pid_t setpgrp(void);
DESCRIPTION
If the calling process is not already a session leader,
setpgrp () sets the process group ID of the calling
process to the process ID of the calling process. If
setpgrp () creates a new session, then the new
session has no controlling terminal.
The setpgrp () function has no effect when
the calling process is a session leader.
RETURN VALUE
Upon completion, setpgrp () shall return
the process group ID.
ERRORS
No errors are defined.
EXAMPLES
None.
APPLICATION USAGE
None.
RATIONALE
None.
FUTURE DIRECTIONS
None.
SEE ALSO
exec(3) , fork(3) , getpid(3) , getsid(3) , kill(3) , setpgid(3) , setsid(3) , the Base Definitions volume of IEEE Std 1003.1-2001 (“POSIX.1”), <unistd.h>
CHANGE HISTORY
First released in Issue 4, Version 2.
Issue 5
Moved from X/OPEN UNIX extension to BASE.
End of informative text. footer end