On Sun, Dec 13, 2009, Loïc Minier wrote: > ioctl(0, TIOCGWINSZ, (char *)&win); > if (openpty(&master, &slave, NULL, &tt, &win) < 0)
all the ioctls of this type fail in the strace log I got: 13708 ioctl(1, TIOCGWINSZ, 0x7fff86c8c790) = -1 EINVAL (Invalid argument) 13708 ioctl(0, TIOCGWINSZ, 0x7fff86c8b6f0) = -1 ENOTTY (Inappropriate ioctl for device) 13708 ioctl(0, TIOCGWINSZ, 0x7fff86c8b6f0) = -1 ENOTTY (Inappropriate ioctl for device) but win is passed unconditionally and is never initialized; I suspect it's passing random terminal setup data. -- Loïc Minier -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org