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@xxxxxxxxxxxx>
--- ./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