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

H. Peter Anvin hpa at zytor.com
Wed Sep 3 23:38:59 PDT 2008


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.

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