summaryrefslogtreecommitdiff
path: root/x11/xworld
diff options
context:
space:
mode:
authorheinz <heinz>2006-02-19 01:28:53 +0000
committerheinz <heinz>2006-02-19 01:28:53 +0000
commit2db2f6628e9524f5f3b4556e06fc7d035cf147b0 (patch)
tree338f6adc3496678301fd09d3c4efd81917dd24ed /x11/xworld
parent26bc2d17ee28f54addf5fce7df324f620efbd3c3 (diff)
downloadpkgsrc-2db2f6628e9524f5f3b4556e06fc7d035cf147b0.tar.gz
IO::Tty was broken on NetBSD >= 3.0.
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
Diffstat (limited to 'x11/xworld')
0 files changed, 0 insertions, 0 deletions