Unix and Linux Discussions Tagged with process |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
0 |
9,307 |
What is on Your Mind? |
|
|
|
1 |
2,393 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
3,276 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
5,421 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
52,527 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,916 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
7,080 |
Red Hat |
|
|
|
2 |
4,090 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
5,715 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,139 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,267 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,127 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,857 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
7,774 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
4,413 |
UNIX for Beginners Questions & Answers |
|
|
|
12 |
7,220 |
Programming |
|
|
|
9 |
17,088 |
Red Hat |
|
|
|
1 |
1,966 |
What is on Your Mind? |
|
|
|
10 |
16,101 |
Red Hat |
|
|
|
8 |
8,187 |
Shell Programming and Scripting |
|
|
|
0 |
3,094 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
2,819 |
UNIX for Beginners Questions & Answers |
|
|
|
10 |
4,108 |
Shell Programming and Scripting |
|
|
|
2 |
2,827 |
Shell Programming and Scripting |
|
|
|
7 |
8,188 |
Shell Programming and Scripting |
|
|
|
0 |
2,145 |
Shell Programming and Scripting |
|
|
|
14 |
5,632 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
7,568 |
Shell Programming and Scripting |
|
|
|
1 |
2,662 |
Solaris |
|
|
|
6 |
3,472 |
Shell Programming and Scripting |
|
|
|
11 |
10,211 |
Solaris |
|
|
|
13 |
3,792 |
Shell Programming and Scripting |
|
|
|
4 |
2,191 |
Programming |
|
|
|
2 |
3,601 |
Programming |
|
|
|
0 |
3,192 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,514 |
Shell Programming and Scripting |
|
|
|
1 |
2,505 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
7,818 |
Programming |
|
|
|
0 |
3,676 |
Linux |
|
|
|
3 |
13,137 |
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)