summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2022-07-28 19:57:51 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-29 01:00:06 +0200
commitcca1bcd67da3d3675345c287529bde96319a9120 (patch)
tree3e9a62ec9224fce9ee8aeff094af335ae864085c
parentcb828372757301fbadc99d54ba9d0fe2a5dd4d96 (diff)
getsid.2: deduplicate getsid(0) case
The first sentence in getsid(0) returns the session ID of the calling process. getsid() returns the session ID of the process with process ID pid. If pid is 0, getsid() returns the session ID of the calling process. blames to beginning of git, duplicates the third one, and doesn't stylistically match current formatting Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
-rw-r--r--man2/getsid.22
1 files changed, 0 insertions, 2 deletions
diff --git a/man2/getsid.2 b/man2/getsid.2
index 7046bfc09..a80aa128e 100644
--- a/man2/getsid.2
+++ b/man2/getsid.2
@@ -30,8 +30,6 @@ Feature Test Macro Requirements for glibc (see
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L
.fi
.SH DESCRIPTION
-.I getsid(0)
-returns the session ID of the calling process.
.BR getsid ()
returns the session ID of the process with process ID
.IR pid .