#11 clone_winsize_from

open
nobody
None
5
2004-08-14
2004-08-14
Guy Rosen
No

Hi,

There seems to be a problem with IO::Pty's
clone_winsize_from() function. The $winsize variable,
passed to the ioctl, is initalized to an empty string.

At least on my system (Perl 5.8, Cygwin), Perl dies
saying "ioctl overflowed 3rd argument". It turns out you
need to make a buffer big enough for the ioctl to fill in,
and here that's 8 bytes, although it might be bigger or
smaller on other systems. If I initialize $winsize
to "\0"x8, then everything works.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks