Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

setpgrp(2) [opensolaris man page]

setpgrp(2)							   System Calls 							setpgrp(2)

NAME
setpgrp - set process group ID SYNOPSIS
#include <sys/types.h> #include <unistd.h> pid_t setpgrp(void); DESCRIPTION
If the calling process is not already a session leader, the setpgrp() function makes it one by setting its process group ID and session ID to the value of its process ID, and releases its controlling terminal. See Intro(2) for more information on process group IDs and session leaders. RETURN VALUES
The setpgrp() function returns the value of the new process group ID. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
setpgrp(1), Intro(2), exec(2), fork(2), getpid(2), getsid(2), kill(2), signal(3C), attributes(5), standards(5) SunOS 5.11 5 Jan 2000 setpgrp(2)

Check Out this Related Man Page

setpgrp(1)							   User Commands							setpgrp(1)

NAME
setpgrp - set process group ID SYNOPSIS
setpgrp command [arg...] DESCRIPTION
If the current process is not already a session leader, the setpgrp utility sets the process group ID and session ID to the current process ID and does an exec() of command and its argument(s), if any. OPERANDS
The following operands are supported: command The name of a command to be invoked. arg An option or argument to command. EXIT STATUS
The following exit values are returned: 1 Error executing the setpgrp utility or during exec() of command. Otherwise, the exit status will be that of command. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
exec(2), setpgrp(2), attributes(5) SunOS 5.10 5 Jan 2000 setpgrp(1)
Man Page