From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/MAN/setsid.htm | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 reference/C/MAN/setsid.htm (limited to 'reference/C/MAN/setsid.htm') diff --git a/reference/C/MAN/setsid.htm b/reference/C/MAN/setsid.htm new file mode 100644 index 0000000..67bc733 --- /dev/null +++ b/reference/C/MAN/setsid.htm @@ -0,0 +1,97 @@ +setsid + +
+
+
+
+
+

SETSID(2) System calls SETSID(2) +

+ +

NAME +

setsid - creates a session and sets the process group ID + +

SYNOPSIS +

#include <unistd.h> + + pid_t setsid(void); + +

DESCRIPTION +

setsid() creates a new session if the calling process is + not a process group leader. The calling process is the + leader of the new session, the process group leader if the + new process group, and has no controlling tty. The pro- + cess group ID of the calling process is set to the PID of + the calling process. The calling process will be the only + process in this new process group and in this new session. + +

RETURN VALUE +

The process group ID of the calling process. + +

ERRORS +

On error, -1 will be returned. The only error which can + happen is EPERM. + +

CONFORMING TO +

POSIX + +
+
+

SEE ALSO +

+setpgid, +

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+                           Aug 27, 1994                         1
+
+
+
+

+


+

+

+ + + + +
+Top + +Master Index + +Keywords + +Functions +
+
+

+


+ +This manual page was brought to you by mjl_man V-2.0 -- cgit v1.2.3-54-g00ecf