All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] getsid.2: deduplicate getsid(0) case
@ 2022-07-28 17:57 наб
  2022-07-28 23:00 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: наб @ 2022-07-28 17:57 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 907 bytes --]

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>
---
 man2/getsid.2 | 2 --
 1 file changed, 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 .
-- 
2.30.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] getsid.2: deduplicate getsid(0) case
  2022-07-28 17:57 [PATCH] getsid.2: deduplicate getsid(0) case наб
@ 2022-07-28 23:00 ` Alejandro Colomar
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2022-07-28 23:00 UTC (permalink / raw)
  To: наб; +Cc: linux-man


[-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --]

Hi наб,

On 7/28/22 19:57, наб wrote:
> 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>

Patch applied.

Thanks,

Alex

> ---
>   man2/getsid.2 | 2 --
>   1 file changed, 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 .

-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-07-28 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 17:57 [PATCH] getsid.2: deduplicate getsid(0) case наб
2022-07-28 23:00 ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.