public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Christian Brauner <christian.brauner@canonical.com>
To: Phil Blundell <pb@pbcl.net>
Cc: Christian Brauner <christian.brauner@ubuntu.com>,
	ebiederm@xmission.com, libc-alpha@sourceware.org
Subject: Re: [PATCH] getpt: use /dev/pts/ptmx as default ptmx master
Date: Thu, 15 Mar 2018 14:53:00 -0000	[thread overview]
Message-ID: <20180315145332.GB12217@gmail.com> (raw)
In-Reply-To: <1521124913.18801.73.camel@pbcl.net>

On Thu, Mar 15, 2018 at 02:41:53PM +0000, Phil Blundell wrote:
> On Thu, 2018-03-15 at 13:06 +0100, Christian Brauner wrote:
> > The idea has always been to slowly fade-out /dev/ptmx and switch to using
> > /dev/pts/ptmx exclusively.
> 
> What's the reason for doing that?  We've had /dev/ptmx for 20 years and
> it is widely documented as the interface for opening ptys (even if it
> was never formally standardised as such).  Clearly it needs to stay
> around for compatibility purposes for the foreseeable future and it's
> not really obvious to me what advantage would be gained by phasing it
> out even over the longer term.  Can you elaborate?
> 
> Thanks

Sure, it is **not** intended to be faded out and it never will. It will
be the fallback and it will stay there just as we have fallbacks in
other places. Sorry, if this gives the impression that something will be
faded out. This is **not** the case or intention.
Opening the ptmx device node through /dev/pts/ptmx let's the kernel
easily verify that the devpts filesystem is available especially in the
face of bind-mounts where it has to resolve the bind-mounts. And like it
or not bind-mounts of /dev/ptmx are supported and not a bug. This has
worked forever.

Christian

  parent reply	other threads:[~2018-03-15 14:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-15 12:07 Christian Brauner
2018-03-15 12:08 ` Christian Brauner
2018-03-15 14:03 ` Zack Weinberg
2018-03-15 14:10   ` Christian Brauner
2018-03-15 14:38     ` Zack Weinberg
2018-03-15 14:49       ` Christian Brauner
     [not found] ` <1521124913.18801.73.camel@pbcl.net>
2018-03-15 14:53   ` Christian Brauner [this message]
2018-03-15 20:03 ` Eric W. Biederman
2018-03-15 20:12   ` Christian Brauner
2018-03-15 20:28     ` Eric W. Biederman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180315145332.GB12217@gmail.com \
    --to=christian.brauner@canonical.com \
    --cc=christian.brauner@ubuntu.com \
    --cc=ebiederm@xmission.com \
    --cc=libc-alpha@sourceware.org \
    --cc=pb@pbcl.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).