patch-ab is only an unintrusive short-term fix, discussion with the authors how to fix it correctly has started. NetBSD >= 3.0 supports grantpt() but it invalidates the slave FD (see grantpt(3) on NetBSD) obtained through openpty() so we discard the (now invalid) descriptor for the slave tty. This causes Tty.xs to open the slave tty again. The issue should be really fixed by using posix_openpt() instead of openpty(). The functions posix_openpt(), grantpt(), unlockpt() and ptsname() belong together and should be used ahead of all the other ways to create the master and slave tty, not just on NetBSD. See also http://www.opengroup.org/onlinepubs/009695399/functions/posix_openpt.html
6 lines
296 B
Text
6 lines
296 B
Text
$NetBSD: distinfo,v 1.7 2006/02/19 01:28:53 heinz Exp $
|
|
|
|
SHA1 (IO-Tty-1.02.tar.gz) = 466e634f5863190a25cb9f3c0878cfe2fe68a3a0
|
|
RMD160 (IO-Tty-1.02.tar.gz) = ac3ec521bad4f7835a9c15cbeb60fe6f85399f98
|
|
Size (IO-Tty-1.02.tar.gz) = 23105 bytes
|
|
SHA1 (patch-ab) = 3465382b06e4facf1b5b5403b69fa7ff1011ff9a
|