[PATCH 11/11][v3]: Enable multiple instances of devpts

H. Peter Anvin hpa at zytor.com
Thu Sep 4 09:02:32 PDT 2008

sukadev at us.ibm.com wrote:
> Ah, ok.  Well, I will remove that para from the patch description.
> If the -o newinstance is NOT followed by the bind mount, ptys won't
> work and would be nice if we can print a useful message when opening
> /dev/ptmx.

We can't, really, because it will open the global ptmx.  This is an 
unfortunate side effect of the backwards-compatibility code.

This is also why I don't like the bind mount; the symlink option has the 
nice property that f*ckups are more obvious.

The non-legacy option should be as follows, IMNSHO:

- ALL mounts of devpts use -o newinstance;
- /dev/ptmx -> pts/ptmx symlink.


More information about the Containers mailing list