Commit 525785fd authored by Committed by Alan Coopersmith
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 <firstname.lastname@example.org> Reviewed-by: Guillem Jover <email@example.com> Reviewed-by: Alan Coopersmith <firstname.lastname@example.org> Signed-off-by: Alan Coopersmith <email@example.com>
Showing with 5 additions and 1 deletion