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 |
setsid(2) System Calls Manual setsid(2)
NAME
setsid - create session and set process group ID
SYNOPSIS
DESCRIPTION
If the calling process is not a process group leader, creates a new session. The calling process becomes the session leader of this new
session, it becomes the process group leader of a new process group, and it has no controlling terminal. The process group ID of the call-
ing process is set equal to the process ID of the calling process. The calling process is the only process in the new process group and
the only process in the new session.
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 value of the new process group ID of the calling process. Otherwise, it returns a value of and
sets to indicate the error.
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.
AUTHOR
was developed by HP and AT&T.
SEE ALSO
exec(2), exit(2), fork(2), getpid(2), kill(2), setpgid(2), setpgrp(2), setpgrp3(2), signal(2), privileges(5), termio(7).
STANDARDS CONFORMANCE
setsid(2)