.\" Copyright Michael Haardt (michael@cantor.informatik.rwth-aachen.de)
.\" Sat Aug 27 20:43:50 MET DST 1994
.\"
+.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
-.\" License along with this manual; if not, write to the Free
-.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
-.\" USA.
+.\" License along with this manual; if not, see
+.\" <http://www.gnu.org/licenses/>.
+.\" %%%LICENSE_END
.\"
.\" Modified Sun Sep 11 19:19:05 1994 <faith@cs.unc.edu>
.\" Modified Mon Mar 25 10:19:00 1996 <aeb@cwi.nl> (merged a few
.\" tiny changes from a man page by Charles Livingston).
.\" Modified Sun Jul 21 14:45:46 1996 <aeb@cwi.nl>
.\"
-.TH SETSID 2 2008-12-03 "Linux" "Linux Programmer's Manual"
+.TH SETSID 2 2013-02-11 "Linux" "Linux Programmer's Manual"
.SH NAME
setsid \- creates a session and sets the process group ID
.SH SYNOPSIS
process group leader.
The calling process is the leader of the new
session, the process group leader of the new process group, and has no
-controlling tty.
+controlling terminal.
The process group ID and session ID of the calling
process are 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.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
On success, the (new) session ID of the calling process is returned.
On error,
.I "(pid_t)\ \-1"
Thus, in particular,
.BR setsid ()
fails if the calling process is already a process group leader.
-.SH "CONFORMING TO"
+.SH CONFORMING TO
SVr4, POSIX.1-2001.
.SH NOTES
A child created via
.BR _exit (2),
and have the child do
.BR setsid ().
-.SH "SEE ALSO"
+.SH SEE ALSO
+.BR setsid (1),
.BR getsid (2),
.BR setpgid (2),
.BR setpgrp (2),