[Devel] Re: [PATCH 11/11][v3]: Enable multiple instances of devpts
sukadev at us.ibm.com
sukadev at us.ibm.com
Thu Sep 4 08:54:31 PDT 2008
H. Peter Anvin [hpa at zytor.com] wrote:
> sukadev at us.ibm.com wrote:
>> 2. To effectively use the multi-instance mode, applications/libraries
>> should, open "/dev/pts/ptmx" instead of "/dev/ptmx" but obviously
>> this would fail in the legacy mode.
>>
>
> NOT SO!
>
> /dev/ptmx is required by Unix98 (which is arguably obsolete, but still.)
> Applications SHOULD NOT try to open /dev/pts/pmtx. This should be
> considered strictly an internal implementation detail.
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.
>
> Applications should use posix_openpt(), openpty() or forkpty(); libraries
> should use /dev/ptmx.
>
> -hpa
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list