Patchwork getpt.3: Remove mention of O_NOCTTY

login
register
mail settings
Submitter Samuel Thibault
Date Dec. 31, 2019, 5:01 p.m.
Message ID <20191231170135.gqbv35jdlqfmomee@function>
Download mbox | patch
Permalink /patch/37135/
State New
Headers show

Comments

Samuel Thibault - Dec. 31, 2019, 5:01 p.m.
The glibc implementation of getpt has actually never been setting
O_NOCTTY when opening /dev/ptmx or BSD ptys.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Michael Kerrisk (man-pages) - Jan. 1, 2020, 7:27 a.m.
Hello Samuel

On 12/31/19 6:01 PM, Samuel Thibault wrote:
> The glibc implementation of getpt has actually never been setting
> O_NOCTTY when opening /dev/ptmx or BSD ptys.
> 
> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

(Inline patches preferred.)

Thanks. Patch applied.

Cheers,

Michael

Patch

--- ./man3/getpt.3.orig	2019-12-31 17:58:50.046714199 +0100
+++ ./man3/getpt.3	2019-12-31 17:59:00.706722831 +0100
@@ -21,7 +21,7 @@ 
 .PP
 .in +4n
 .EX
-open("/dev/ptmx", O_RDWR | O_NOCTTY);
+open("/dev/ptmx", O_RDWR);
 .EE
 .in
 .PP