1setpgrp(2)                       System Calls                       setpgrp(2)
2
3
4

NAME

6       setpgrp - set process group ID
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <unistd.h>
11
12       pid_t setpgrp(void);
13
14

DESCRIPTION

16       If  the  calling process is not already a session leader, the setpgrp()
17       function makes it one by setting its process group ID and session ID to
18       the value of its process ID, and releases its controlling terminal. See
19       Intro(2) for more information on process group IDs and session leaders.
20

RETURN VALUES

22       The setpgrp() function returns the value of the new process group ID.
23

ERRORS

25       No errors are defined.
26

ATTRIBUTES

28       See attributes(5) for descriptions of the following attributes:
29
30
31
32
33       ┌─────────────────────────────┬─────────────────────────────┐
34       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
35       ├─────────────────────────────┼─────────────────────────────┤
36       │Interface Stability          │Standard                     │
37       └─────────────────────────────┴─────────────────────────────┘
38

SEE ALSO

40       setpgrp(1), Intro(2), exec(2), fork(2), getpid(2), getsid(2),  kill(2),
41       signal(3C), attributes(5), standards(5)
42
43
44
45SunOS 5.11                        5 Jan 2000                        setpgrp(2)
Impressum