Unix and Linux Discussions Tagged with process |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
9,077 |
What is on Your Mind? |
|
|
|
1 |
2,291 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,144 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,260 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
52,302 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,796 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
6,846 |
Red Hat |
|
|
|
2 |
3,967 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,587 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,029 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,157 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,034 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,770 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
7,662 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,316 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
7,036 |
Programming |
|
|
|
9 |
16,742 |
Red Hat |
|
|
|
1 |
1,960 |
What is on Your Mind? |
|
|
|
10 |
15,772 |
Red Hat |
|
|
|
8 |
8,172 |
Shell Programming and Scripting |
|
|
|
0 |
3,008 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,742 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,086 |
Shell Programming and Scripting |
|
|
|
2 |
2,817 |
Shell Programming and Scripting |
|
|
|
7 |
8,171 |
Shell Programming and Scripting |
|
|
|
0 |
2,139 |
Shell Programming and Scripting |
|
|
|
14 |
5,467 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
7,536 |
Shell Programming and Scripting |
|
|
|
1 |
2,581 |
Solaris |
|
|
|
6 |
3,453 |
Shell Programming and Scripting |
|
|
|
11 |
10,071 |
Solaris |
|
|
|
13 |
3,780 |
Shell Programming and Scripting |
|
|
|
4 |
2,112 |
Programming |
|
|
|
2 |
3,520 |
Programming |
|
|
|
0 |
3,174 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,499 |
Shell Programming and Scripting |
|
|
|
1 |
2,502 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,656 |
Programming |
|
|
|
0 |
3,519 |
Linux |
|
|
|
3 |
13,067 |
Programming |
setpgrp(2) System Calls Manual setpgrp(2)
NAME
setpgrp - set process group ID
SYNOPSIS
DESCRIPTION
If the calling process is not already a session leader, sets the process group ID of the calling process to the process ID of the calling
process. If creates a new session, then the new session has no controlling terminal.
The function has no effect when the calling process is a session leader.
Security Restrictions
Some or all of the actions associated with this system call may require privileges. See privileges(5) for more information.
RETURN VALUE
Upon successful completion, returns the new process group ID.
ERRORS
If fails, no changes occur and (see errno(2)) is set to one of the following values:
The calling process is already a process group leader or
the process group ID of a process other than the calling process matches the process ID of the calling process.
The calling process does not have sufficient privileges.
SEE ALSO
exec(2), fork(2), getpid(2), getsid(2), kill(2), setpgrp3(2), setsid(2), privileges(5), <unistd.h>.
STANDARDS CONFORMANCE
setpgrp(2)