[Patch] Let luit use posix_openpt()

Guillem Jover guillem at hadrons.org
Thu Oct 13 06:17:06 PDT 2011


On Wed, 2011-10-12 at 20:59:54 +0200, Ed Schouten wrote:
> From e599ea2515e9eda2d35b72431df5569f2b99f318 Mon Sep 17 00:00:00 2001
> From: Ed Schouten <ed at 80386.nl>
> Date: Wed, 12 Oct 2011 20:53:21 +0200
> Subject: [PATCH] Add support for posix_openpt().
> 
> Instead of opening /dev/ptmx directly, we should use the proper
> posix_openpt() function to obtain a pseudo-terminal. Some operating
> systems, such as FreeBSD 8 and later, implement pseudo-terminal master
> device nodes as a special file descriptor type, like sockets. They do
> not support creation of pseudo-terminals through /dev/ptmx.
> 
> Signed-off-by: Ed Schouten <ed at 80386.nl>

Reviewed-by: Guillem Jover <guillem at hadrons.org>

regards,
guillem


More information about the xorg-devel mailing list