diff options
author | mpp <mpp@FreeBSD.org> | 1997-01-12 00:38:36 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-01-12 00:38:36 +0000 |
commit | 54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45 (patch) | |
tree | 90aaba8b57f96154b6594ad2a7c5a9b92e206d48 /lib/libc/sys/setsid.2 | |
parent | 222e4ec9673e5231e2af9b2b72919d890d8829ed (diff) | |
download | FreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.zip FreeBSD-src-54b96968b6dec7e1b3cbfa045f28dd9c4e0ecc45.tar.gz |
Add missing RETURN VALUES/ERRORS sections.
Diffstat (limited to 'lib/libc/sys/setsid.2')
-rw-r--r-- | lib/libc/sys/setsid.2 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/setsid.2 b/lib/libc/sys/setsid.2 index d56ad1f..27e5f42 100644 --- a/lib/libc/sys/setsid.2 +++ b/lib/libc/sys/setsid.2 @@ -50,17 +50,20 @@ process group leader of a new process group and has no controlling terminal. The calling process is the only process in either the session or the process group. -.Pp +.Sh RETURN VALUES Upon successful completion, the .Fn setsid function returns the value of the process group ID of the new process group, which is the same as the process ID of the calling process. -.Sh ERRORS If an error occurs, .Fn setsid returns -1 and the global variable .Va errno -is set to indicate the error, as follows: +is set to indicate the error. +.Sh ERRORS +The +.Fn setsid +function will fail if: .Bl -tag -width Er .It Bq Er EPERM The calling process is already a process group leader, or the process |